Remove focus rectangle on a UserControl

后端 未结 1 1654
鱼传尺愫
鱼传尺愫 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条回答
  •  Happy的楠姐
    2020-12-08 00:56

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

    
    

    0 讨论(0)
提交回复
热议问题