Weird focusing on TabControl
Posted: 27 Jun 2017, 06:45
Using the below XAML test code:
I observed several weird behaviors:
1. Repeatedly typing Shift-Tabs change the selection of tabs, but only between Tab3 and Tab4
2. Click on Tab1 header, then type Tab -> the focus doesn't move to the textbox of Tab1
3. Click on Tab1's textbox to move the focus, then type Tab -> the tab selection is changed to Tab2, focus is on header ?
4. Click on Tab2/3/4's textbox to move the focus, then type Tab -> the tab selection is change to Tab1, focus is on header ?
Code: Select all
<TabControl>
<TabItem Header="Tab1"><TextBox></TextBox></TabItem>
<TabItem Header="Tab2"><TextBox></TextBox></TabItem>
<TabItem Header="Tab3"><TextBox></TextBox></TabItem>
<TabItem Header="Tab4"><TextBox></TextBox></TabItem>
</TabControl>
1. Repeatedly typing Shift-Tabs change the selection of tabs, but only between Tab3 and Tab4
2. Click on Tab1 header, then type Tab -> the focus doesn't move to the textbox of Tab1
3. Click on Tab1's textbox to move the focus, then type Tab -> the tab selection is changed to Tab2, focus is on header ?
4. Click on Tab2/3/4's textbox to move the focus, then type Tab -> the tab selection is change to Tab1, focus is on header ?