I know how to change the tooltip in the xaml side of things, but does anybody know a great solution to do this in C#?
+3
A:
Say you have a button like this:
<Button x:Name="btnOne" Content="How to grow big and strong?">
<Button.ToolTip>
<ToolTip>
Eat your veggies
</ToolTip>
</Button.ToolTip>
</Button>
you can change it like this:
var tip = ToolTipService.GetToolTip(this.btnOne) as ToolTip;
tip.Background = new SolidColorBrush(Colors.Magenta);
Software.Developer
2010-03-09 19:54:26
I didnt know of the ToolTipService.GetToolTip . Thanks!
Redburn
2010-03-09 20:02:02