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

.NET MAUI text wrapping issue specific to iOS when Label is generated dynamically

Troubleshooting steps: Explicitly set LineBreakMode to WordWrap in XAML or code Verify label's HorizontalOptions and VerticalOptio...