Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Setting global FocusVisualStyle does not work - MSDN library completely wrong?

$
0
0

This MSDN library page states that to declare an application-wide focus visual style, I need to set my style's key to SystemParameters.FocusVisualStyleKey. Tried it, has no effect. What's wrong here? Is the MSDN library completely wrong?

Background: WPF has this ugly wide dashed line style, whereas Win32 has a pixel-dotted line style which is less obtrusive. I've successfully used it in one of my controls where I needed to change the margin, too. My StrokeDashArray is set to "0.5 1.5" which gives a nice result. I'd now like to apply it to each and every visual in my application without manually assigning a FocusVisualStyle value everywhere.


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>