Thursday, June 30, 2011

WPF-How to get Tooltip when hovering over disabled element

WPF-How to get Tooltip when hovering over disabled element
By setting ShowDisabled attached property of tooltip class to true we can get tooltip when hovered over disabled element


In XAML:

<Button Height="23" ToolTipService.ShowOnDisabled="True"/>

From Code Behind in C#:


ToolTipService.SetShowOnDisabled(DemoButton, true);

No comments:

Post a Comment

Your project is not referencing the "MonoAndroid,Version=v8.1" framework. Add a reference to "MonoAndroid,Version=v8.1" in the "frameworks" section of your project.json, and then re-run NuGet restore.

I had  the same problem. Reason: file obj/project.assets.json target "MonoAndroid,Version=v7.1" when my project target androi...