Reputation: 1981
I can not find a way to globally disable tabstop for every element that is created or will be created inside a window... So that tab navigation would only work for those elements where I write in KeyboardNavigation.TabStop="true". Is there a way to do this?
Upvotes: 2
Views: 1107
Reputation: 292685
You can put this in your application's Startup
event:
Control.IsTabStopProperty.OverrideMetadata(
typeof(Control),
new FrameworkPropertyMetadata(false));
It changes the default value of the IsTabStop
property to false.
Upvotes: 3