Is it possible to enable ToolTipService.ShowOnDisabled=true for entire application

c#, tooltip, wpf

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)); 
}

Problem

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.

Original source