microsoft / microsoft/microsoft-ui-xaml

Window close button does not fill with main window

Open
#9,934 5 comments 0 reactions 0 assignees View on GitHub
area-AppWindow area-TitleBar bug team-CompInput
Dominant language
C++
Stars
8.4k
Forks
942
Avg merge
2d 7h
Merged PRs (30d)
105

Description

### Describe the bug

Window close button have padding right in main window

### Steps to reproduce the bug

```
_mainWindow.ExtendsContentIntoTitleBar = true
_mainWindow.SetAdjustBar(GetCurrentTheme());
```

### Expected behavior

Remove right padding for Window Close button

### Screenshots

![Untitled](https://github.com/user-attachments/assets/e30ca02e-b080-4b21-b628-c6ad96eec876)

### NuGet package version

WinUI 3 - Windows App SDK 1.5.6: 1.5.240802000

### Windows version

Windows 10 (21H1): Build 19043

### Additional context

_No response_

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue using _mainWindow.ExtendsContentIntoTitleBar = true and _mainWindow.SetAdjustBar(GetCurrentTheme()) on WinUI 3 with Windows App SDK 1.5.6. Trace the title-bar and close-button layout involved in that configuration; done means the Window Close button has no unwanted right padding and fills the main window edge.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.