开发者

Change the FocusVisualStyle in the entire application

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜