Is there any way to enable ToolTipService.ShowOnDisabled = true
for entire application or do I have to set it for every single control in my WPF application manually?
I do not think restyling every control is a good solution.
You can override the property metadata for ToolTipService.ShowOnDisabled
and set its default value to true (by default value is false)
and it will apply to all the controls in your application.
Put this code in your App.xaml.cs
static App()
{
ToolTipService.ShowOnDisabledProperty.OverrideMetadata(typeof(Control),
new FrameworkPropertyMetadata(true));
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With