WPF Control remove focus and hover effect (FocusVi

2019-08-28 04:34发布

问题:

I am trying to remove the nasty looking effect on controls when hovering or focusing.

This seems not to work:

FocusVisualStyle="{x:Null}"

And this is what I got so far:

<ComboBox Grid.Row="2" HorizontalAlignment="Right" Background="Transparent" BorderBrush="#FFE87E00" FocusVisualStyle="{x:Null}"/>

Thanks in advance!

回答1:

Look at the control template, you should be able to manipulate what occurs when visual states changes from there.