microsoft / microsoft/microsoft-ui-xaml

Non resizable window withouth title bar has border when updating to 1.6

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

Description

### Describe the bug

With the 1.6 version i get a white border around a window that's not resizable.

### Steps to reproduce the bug

Create a window with the following code:
``` csharp
Window window = new();
OverlappedPresenter presenter = OverlappedPresenter.Create();
presenter.IsResizable = false;
presenter.SetBorderAndTitleBar(false, false);
window.AppWindow.SetPresenter(presenter);
window.AppWindow.Show();
```

### Expected behavior

There is no border around the window

### Screenshots

![Window1_5](https://github.com/user-attachments/assets/17cd45ed-6794-4bfd-98bd-28e07649e4c5)
![Window1_6](https://github.com/user-attachments/assets/fd4a8ce5-aa9b-47ea-b448-fe7be7aaba98)

### NuGet package version

WinUI 3 - Windows App SDK 1.6.0: 1.6.240829007

### Windows version

Windows 11 (22H2): Build 22621

### Additional context

Works fine with WindowsAppSDK 1.5.240802000

Contributor guide

Open the contributing guide

Research direction

Start by running the provided C# reproduction on Windows 11 with Windows App SDK 1.6, then compare it with 1.5. Investigate the window presenter behavior for a non-resizable window with both the border and title bar disabled; done means the 1.6 window has no white border, matching the expected behavior and the 1.5 result.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.