Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我找不到一种方法来为每个在窗口内创建或将要创建的元素全局禁用制表符...因此,选项卡导航仅适用于我在 KeyboardNavigation.TabStop="true" 中编写的那些元素。有没有办法做到这一点?
您可以将其放入应用程序的Startup事件中:
Startup
Control.IsTabStopProperty.OverrideMetadata( typeof(Control), new FrameworkPropertyMetadata(false));
它将属性的默认值更改IsTabStop为 false。
IsTabStop