c# - Is it possible to turn off TabStop for all StackPanels in a single global place? -


i have number of usercontrol each contain number of stackpanels. problem have each stackpanel seems think i'm interested in tabbing before tab contents of stackpanel. if want tab control exists in stackpanel_a control exists in stackpanel_b need hit tab @ least twice tab first control stackpanel_b, second control.

i can turn off tabstop specifying, e.g.

<stackpanel keyboardnavigation.istabstop="false" /> 

but considering how many stackpanel elements have it's both tedious , messy.

is there way me in single global place?

you might able achieve using style in global scope (e.g. app.xaml file):

<application.resources>     <style targettype="{x:type stackpanel}">         <setter property="keyboardnavigation.istabstop" value="false" />     </style> </application.resources> 

then way stackpanel in application won't tab stop.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -