WPF Tooltip Visibility

David Ward picture David Ward · Jun 30, 2010 · Viewed 25.5k times · Source

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?

Answer

Quartermeister picture Quartermeister · Jun 30, 2010

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.