microsoft / microsoft/microsoft-ui-xaml

IsTabStop is true by default on TitleBar

Open Beginner friendly
#11,521 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area-TitleBar bug team-Controls
Dominant language
C++
Stars
8.4k
Forks
942
Avg merge
2d 7h
Merged PRs (30d)
105

Description

### Describe the bug

`IsTabStop` is `true` by default on TitleBar which is strange in my option. There is nothing you can to when focus is set on the TitleBar, nor you can see it's focused.

### Why is this important?

It's makes tab navigation confusing.

### Steps to reproduce the bug

1. Create a new blank WinUI application.
2. In MainWindow.xaml, set this as the content of the Window:

```xaml









```

3. Set this as the constructor:

```C#
public MainWindow()
{
InitializeComponent();

ExtendsContentIntoTitleBar = true;
SetTitleBar(AppTitleBar);
}
```

### Actual behavior

When you press tab you should navigate just between the `Button` and the `TextBox`.

### Expected behavior

When you press tab you should navigate just between the `Button` and the `TextBox` and the `TitleBar`.

### Screenshots

Button in focus:

Image

TextBox in focus:

Image

TitleBar in focus:

Image

### NuGet package version

Microsoft.WindowsAppSDK 2.3.1

### Windows version

Windows 11 (26H1): Build 28000

### Additional context

Issue is easily solved by adding `IsTabStop="False"` to `TitleBar`.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the MainWindow.xaml reproduction and the MainWindow constructor, focusing on the TitleBar's IsTabStop behavior. Inspect the TitleBar control entry point and any existing related tests; done means tab navigation no longer stops on the TitleBar by default while Button and TextBox navigation remains intact.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, csharp
Domain
desktop
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
72/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.