Disable WPF Window Focus

前端 未结 5 1956
青春惊慌失措
青春惊慌失措 2020-12-06 00:10

I have a WPF Window that shows up only when you hold down the tab key via Visibility.Hidden and Visibility.Visible. However, holding the key down shifts the focus from the a

5条回答
  •  -上瘾入骨i
    2020-12-06 00:47

    Maybe a PopupWindow instead of Window would be what you want? It has a property of Focusable which you can set to false (it might be false by default I think).

提交回复
热议问题