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

COMMENT USING
PREMIUM SPONSORS
MCN is your source for developing solutions involving websites, mobile apps, cloud-computing, databases, BI, back-end services and processes and client-server applications.
Employers - Post Free Jobs
SPONSORED BY
  • MCN is your source for developing solutions involving websites, mobile apps, cloud-computing, databases, BI, back-end services and processes and client-server applications.