Home > DeveloperSection > Interviews > Q: How do I get a ToolTip to appear when hovering over a disabled element?

Posted on    March-11-2011 12:00 AM

 WPF WPF 
Ratings:
 1 Answer(s)
  1326  View(s)
Rate this:

Awadhendra Tiwari

Total Post:510

Points:2550
Posted on    March-11-2011 1:00 AM

use the ShowOnDisabled attached property of theToolTipService class! From

XAML, this would look like the following on a Button:

<Button ToolTipService.ShowOnDisabled=”True”>

</Button>

Or from C# code, you can call the static methodcorresponding to the attached property:

ToolTipService.SetShowOnDisabled(myButton, true);


Don't want to miss updates? Please click the below button!

Follow MindStick