Search code examples
wpfbindingtooltipvisibility

WPF Tooltip Visibility


How can I ensure that a button's Tooltip is only visible when the button is disabled?

What can I bind the tooltip's visibility to?


Solution

  • You will need to set ToolTipService.ShowOnDisabled to True on the Button in order to have the Tooltip visible at all when the Button is disabled. You can bind ToolTipService.IsEnabled on the Button to enable and disable the Tooltip.