0

Is there a way to prevent a control from receiving focus when tabbing through elements?

I'd like to do this in XAML.

Here's an example, where I'd like to keep the second textbox from receiving focus when tabbing through controls:

<StackPanel>
    <TextBox Name="tb1"></TextBox>
    <TextBox Name="tb2"></TextBox>
</StackPanel>
Aaron Thomas
  • 5,054
  • 8
  • 43
  • 89
  • 2
    See this question: http://stackoverflow.com/questions/359758/setting-tab-order-in-wpf – Wamadahama Aug 26 '15 at 19:10
  • @Wamadahama yep that gets it, although that question's title doesn't indicate this is even covered. I'll vote to mark this as a duplicate. – Aaron Thomas Aug 26 '15 at 19:12

0 Answers0