Blog

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

Posted 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);

post comment
     
COMMENT USING
PREMIUM SPONSORS
Over-C is a holistic consortium of communications and technology specialists. We build, deploy and market both business as well as consumer products and solutions.
Get Career Advice from Experts
SPONSORED BY
  • PDF reports have never been easier to create. With our included WYSIWYG Designer, you can layout your reports, set up your data source and let DynamicPDF ReportWriter do the rest.
Join a Chapter