Change FocusVisualStyle throughout the application

When creating a WPF application, I would like to change the default value of FocusVisualStyle (black "march ant") to something else, for example, to a blue border. I would like to make this change for each control for the entire application. Is it easier to change the default style for each type of control?

thanks

+3
source share
1 answer

Unfortunately, there is no easy way to apply style to all controls. The main problem is that by default, WPF allows only one style for each control.

You can get around this, but it requires overriding the styles of all controls.

. : WPF

+1

Source: https://habr.com/ru/post/1725259/


All Articles