开发者

Change the FocusVisualStyle in the entire application

开发者 https://www.devze.com 2022-12-13 13:19 出处:网络
While making a WPF application I would like to change the default FocusVisualStyle (the black \"marching ants\" border) to something else, like for example a blue border. I would like to make this cha

While making a WPF application I would like to change the default FocusVisualStyle (the black "marching ants" border) to something else, like for example a blue border. I would like to make this change for every control on the entire a开发者_StackOverflow社区pplication. Is there an easier way then changing the default style for every type of control?

Thanks


Unfortunately there's no easy way to apply a style to all controls. The main issue is that by default WPF only allows one style per control.

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

See this question for more info: How to apply multiple styles in WPF

0

精彩评论

暂无评论...
验证码 换一张
取 消