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

[.NET 9.0 Preview 7] .NET MAUI Windows App (WinUI 3) and regular WinUI 3 App don't remember the display in a multi-display setup, but always open in the main display #9927

Open
TommiGustafsson-HMP opened this issue Aug 28, 2024 · 0 comments
Labels
area-Windowing feature proposal New feature proposal needs-triage Issue needs to be triaged by the area owners

Comments

@TommiGustafsson-HMP
Copy link

Describe the bug

Setup

Hardware

A development laptop and an external display connected to an HDMI connector.

Software
  • .NET 9.0 Preview 7
  • Visual Studio 2022 17.12.0 Preview 1.0

Bug

When I create an empty .NET MAUI 9.0 Preview 7 App on Windows or an empty WinUI 3 App, they open up in the main display (laptop). If I move the app to the secondary display (external display) and close it there, it still opens in the main display (laptop) the next time I open it.

Steps to reproduce the bug

  1. Create an empty .NET MAUI App or WinUI 3 packaged App in Visual Studio 2022 Preview.
  2. Start the app by pressing the green debug button.
  3. Move the app to the secondary display (external display).
  4. Close the app.
  5. Open the app again either by pressing the green debug button or from the start menu.
  6. The app appears again in the main display.

Expected behavior

The app remembers its display position and appears in the secondary display.

Screenshots

No response

NuGet package version

WinUI 3 - Windows App SDK 1.5.6: 1.5.240802000

Windows version

Windows 11 (22H2): Build 22621

Additional context

Windows version is actually 23H2 22631.4037, but there was no option to select it.

@TommiGustafsson-HMP TommiGustafsson-HMP added the bug Something isn't working label Aug 28, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label Aug 28, 2024
@codendone codendone added feature proposal New feature proposal area-Windowing and removed bug Something isn't working labels Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Windowing feature proposal New feature proposal needs-triage Issue needs to be triaged by the area owners
Projects
None yet
Development

No branches or pull requests

2 participants