Q: HOW DO I GET A TOOLTIP TO APPEAR WHEN HOVERING OVER A DISABLED ELEMENT?

Awadhendra Tiwari

Total Post:510

Points:2550
Posted by  Awadhendra Tiwari
WPF 
WPF
 1533  View(s)
Ratings:
Rate this:
  1. Awadhendra Tiwari

    Post:510

    Points:2550
    Q: How do I get a ToolTip to appear when hovering over a disabled element?

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

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!