I have a stackpanel that keeps getting focus when I tab around in the application.
Using snoop I can see that the stackpanel has a ContentControl which has a ContentPresenter. It is the ContentControl that gets the focus. How can I disable this? And why is this default behavior?
StackPanel
shouldn't be able to get focus unless you setFocusable="True"
(default isFalse
). Where is thisStackPanel
located,Window
/UserControl
,ItemsControl
? – SeclusionFocusable="False"
on the ContentControl? – Embolden