AvaloniaUI / Avalonia

Develop Desktop, Embedded, Mobile and WebAssembly apps with C# and XAML. The most popular .NET UI client technology
https://avaloniaui.net
MIT License
26.04k stars 2.25k forks source link

NativeMenu - When clicking it expands to the wrong monitor #17528

Open henrrymoraes83 opened 1 week ago

henrrymoraes83 commented 1 week ago

Describe the bug

In NativeMenu, when I have one monitor on top of another, when I run the software maximized on the bottom monitor and when I click on NativeMenu it expands to the top monitor, as shown in the video below.

Here is the Github code:

https://github.com/FrankenApps/Avalonia-CustomTitleBarTemplate

Watch the video showing how to reproduce the bug:

https://github.com/user-attachments/assets/cf76ab00-8089-4b2f-be20-b0f4f1943da1

To Reproduce

1) Set up 2x monitors, one on top of the other. 2) Run the Github code from the link above. 3) Maximize the window. 4) Click on NativeMenu

Expected behavior

No response

Avalonia version

11.2.1

OS

Windows

Additional context

No response