Blog

WPF: Appearing of ToolTip when hovering over a disabled element.

By Nipun Tomar Blogs | WPF Dec 15, 2011
While hovering over a disabled element the tooltip doesn't apper but, we can do this as follows:
While hovering over a disabled element the tooltip doesn't apper but, we can do this as follows:

1.    Use the ShowOnDisabled attached property of the ToolTipService class! From XAML, this would look like the following on a Button:

 

<Button ToolTipService.ShowOnDisabled=”True”>

</Button>

2.    Or from C# code, you can call the static method corresponding to the attached property:

          ToolTipService.SetShowOnDisabled(myButton, true);

COMMENT USING

PREMIUM SPONSORS

Hire Mobile & Web Developer on demand. 100% satisfaction. Try for 1 week or Money Back. Local and remote developers available all over USA.

Latest Blogs