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

A window cannot go full screen properly across multiple screens #665

Open
huangbaohua11 opened this issue Oct 15, 2024 · 1 comment
Open

Comments

@huangbaohua11
Copy link

huangbaohua11 commented Oct 15, 2024

Here is my code. I want a window to be full screen across multiple screens, but I found that when I use the following screen arrangement and scaling, it doesn't work correctly。
Image

    public MainWindow()
    {
        InitializeComponent();
       
        Width = SystemParameters.VirtualScreenWidth;
        Height = SystemParameters.VirtualScreenHeight;
        Left = SystemParameters.VirtualScreenLeft;
        Top = SystemParameters.VirtualScreenTop;
        Console.WriteLine($"Left:{Left},Top:{Top},Width:{Width},Height:{Height}");
    }

Image

My project has PerMonitorV2 DPI awareness enabled and My project use .netframework 4.8.

@huangbaohua11 huangbaohua11 changed the title window can not display fullscreen on multiscreen A window cannot go full screen properly across multiple screens Oct 15, 2024
@huangbaohua11
Copy link
Author

FullScreenDemo.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant