简体   繁体   中英

WPF Control remove focus and hover effect (FocusVisualStyle?!)

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!

查看控件模板,您应该能够操纵视觉状态从那里更改时发生的情况。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM