Skip to content

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

@huangbaohua11

Description

@huangbaohua11

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions