Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TabControl is always the last one to receive focus when using Tab key navigation #3765

Closed
shinywong opened this issue Mar 21, 2020 · 1 comment
Labels
Milestone

Comments

@shinywong
Copy link

shinywong commented Mar 21, 2020

Describe the bug
TabControl is always the last one to receive Tab focus, no matter where it was placed in the XAML file, and no matter which value its TabIndex was set.

To Reproduce
Steps to reproduce the behavior:

  1. XAML file snippet:
<StackPanel>
    <StackPanel>
        <Button Content="Button A"/>
        <TabControl>
            <TabItem Header="Tab">
                <Button Content="Button B"/>
            </TabItem>
        </TabControl>
    </StackPanel>
    <Button Content="Button C"/>
</StackPanel>
  1. Navigate using Tab key, you will find out the actual Tab order is
    "Button A" -> "Button C" -> "Button B".

Expected behavior
The Tab order should be "Button A" -> "Button B" -> "Button C".
Without using MahApps.Metro, it will work as expected.

Screenshots
(None)

Environment

  • MahApps.Metro: v1.6.5
  • OS: Win10 1909
  • Visual Studio: 2019 16.5.0
  • .NET Framework: 4.8

Repo
(None)

Additional context
(None)

@punker76 punker76 added the Bug label May 19, 2020
@punker76 punker76 added this to the 2.0.0 milestone May 19, 2020
@punker76
Copy link
Member

@shinywong I can't reproduce this with the current source. So I'll close this for now. But feel free to re-open this, if you are still get this issue with the latest version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants