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 WinUI3 window which IsMaximizable and IsResizable has been set to false, still can be maximized into fullscreen #9580

Closed
efreykongcn opened this issue Apr 25, 2024 · 2 comments
Labels
bug Something isn't working needs-triage Issue needs to be triaged by the area owners

Comments

@efreykongcn
Copy link

Describe the bug

In WinUI3 packaged app.

On a WinUI 3 window, which IsMaximizable and IsResizable has been set to false, still can be maximized info fullscreen by double clicks it's title bar.

Steps to reproduce the bug

In a new created blank WinUI3 app:

  1. Edit OnLaunched method in App.xaml.cs file, append below code after m_window = new MainWindow();:
            var presenter = (OverlappedPresenter)m_window.AppWindow.Presenter;
            presenter.IsResizable = false;
            presenter.IsMaximizable = false;
            presenter.IsMinimizable = false;
  1. Press F5 to run the app.
  2. On the Startup window, it is true that the minimize button and the maximize button are invisible, and the window can not be resized.
  3. Double click it's title bar.
  4. The window becomes fullscreen.

Expected behavior

Window's size shouldn't change.

Screenshots

No response

NuGet package version

WinUI 3 - Windows App SDK 1.5.2: 1.5.240404000

Windows version

Windows 11 (22H2): Build 22621

Additional context

Microsoft Visual Studio Community 2022 (64-bit) - Current Version 17.9.6

@efreykongcn efreykongcn added the bug Something isn't working label Apr 25, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label Apr 25, 2024
Copy link

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@efreykongcn
Copy link
Author

Close this one since it's duplicated to #9427 and #8666

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-triage Issue needs to be triaged by the area owners
Projects
None yet
Development

No branches or pull requests

1 participant