You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using OverlappedPresenter.IsMaximizable = false, the app window's maximize button "looks" disabled, but still clickable and will make the window to maximize.
Steps to reproduce the bug
Create a new WinUI 3 Packaged Project in VS 2022.
In the MainWindow.xaml.cs file, go to public MainWindow() constructor.
Insert the following code after the this.initializeComponent(): public MainWindow() { this.InitializeComponent(); WindowTitleBar = AppWindow.TitleBar; WindowTitleBar.ExtendsContentIntoTitleBar = true; WindowTitleBar.PreferredHeightOption = TitleBarHeightOption.Standard; OverlappedPresenter windowPresenter; windowPresenter = (OverlappedPresenter)AppWindow.Presenter; windowPresenter.IsMaximizable = false; windowPresenter.IsMinimizable = true; windowPresenter.IsResizable = false; }
Expected behavior
The maximize button should be completely disabled and the window should not be maximizable.
Screenshots
No response
NuGet package version
Windows App SDK 1.4 Preview 2: 1.4.230811000-preview2
Packaging type
Packaged (MSIX)
Windows version
Windows 11 version 22H2 (22621, 2022 Update)
IDE
Visual Studio 2022
Additional context
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
When using OverlappedPresenter.IsMaximizable = false, the app window's maximize button "looks" disabled, but still clickable and will make the window to maximize.
Steps to reproduce the bug
public MainWindow()
{
this.InitializeComponent();
WindowTitleBar = AppWindow.TitleBar;
WindowTitleBar.ExtendsContentIntoTitleBar = true;
WindowTitleBar.PreferredHeightOption = TitleBarHeightOption.Standard;
OverlappedPresenter windowPresenter;
windowPresenter = (OverlappedPresenter)AppWindow.Presenter;
windowPresenter.IsMaximizable = false;
windowPresenter.IsMinimizable = true;
windowPresenter.IsResizable = false;
}
Expected behavior
The maximize button should be completely disabled and the window should not be maximizable.
Screenshots
No response
NuGet package version
Windows App SDK 1.4 Preview 2: 1.4.230811000-preview2
Packaging type
Packaged (MSIX)
Windows version
Windows 11 version 22H2 (22621, 2022 Update)
IDE
Visual Studio 2022
Additional context
No response
The text was updated successfully, but these errors were encountered: