Remove focus rectangle on a UserControl

后端 未结 1 1651
鱼传尺愫
鱼传尺愫 2020-12-07 23:53

I have a WPF UserControl with Focusable=\"True\". It\'s the only focusable control in the window.

Whenever the user presses Tab or Alt (and especially when they Alt+

相关标签:
1条回答
  • 2020-12-08 00:56

    If you want to not display the focus rectangle in any case you could set the FocusVisualStyle to null.

    <MyControl FocusVisualStyle="{x:Null}" />
    
    0 讨论(0)
提交回复
热议问题