WPF Control remove focus and hover effect (FocusVi

2019-08-28 04:35发布

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条回答
做自己的国王
2楼-- · 2019-08-28 05:06

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

查看更多
登录 后发表回答