I need to remove the selected state (effect) or whatever it is called from every control in my interface. You know the black dashed line…
What are the ways for it to be done?
P.S. Is it normal for a fully customized XAML page to use 30MB RAM?
Thanks in advance.
That is controls by the FocusVisualStyle of the associated control. Unfortunately, you cannot disable that globally for all controls using a single
Styleor setting. Instead, you’d have to individually turn it off for every control type.For example, you can include the following styles in your
Application.Resourcesto turn it off for the specified controls:But keep in mind, that if you use the
Styleproperty on any of the controls or if you have any other implicit styles defined then those will prevent the styles above from being applied.Or as Rachel point out, you could do this:
Functionally, both approaches above have the same effect.