How can I prevent tabbing to a UserControl?

前端 未结 6 2230
青春惊慌失措
青春惊慌失措 2020-12-17 16:58

I have a custom Popup that overlays part of my screen. When it is open, I want to disable tabbing into the UserControl behind it. I do not want to use the IsEnabled

6条回答
  •  误落风尘
    2020-12-17 17:52

    Use the KeyboardNavigation.TabNavigation Attached Property with KeyboardNavigationMode.None on your container control.

    KeyboardNavigation.TabNavigation="None"
    

提交回复
热议问题