How to simply put this in your Application.Resources ?:
<Style TargetType="{x:Type Control}"> <Setter Property="FocusVisualStyle" Value="{x:Null}" /> </Style>
To also affect uncontrolled controls, try instead:
<Style TargetType="{x:Type FrameworkElement}"> <Setter Property="FocusVisualStyle" Value="{x:Null}" /> </Style>
Since Control is derived from FrameworkElement , they will all use this Style as well.
source share