Describe the bug
when trying to enter full screen using the API, i keep experiencing crash on my packaged winforms app (with windowsappsdk nuget installed).
other modes such as Default, CompactOverlay, etc work just fine.
Steps to reproduce the bug
- create winforms app
- setup to use windows app sdk
- create msix installer project and reference the winforms app
- create a button
// in the form.
AppWindow GetAppWindow()
{
return AppWindow.GetFromWindowId(
Win32Interop.GetWindowIdFromWindow(this.Handle));
}
// in the button.
GetAppWindow().SetPresenter(AppWindowPresenterKind.FullScreen);
Expected behavior
no crash
Screenshots
No response
NuGet package version
Windows App SDK 1.6.6: 1.6.250228001
Packaging type
Packaged (MSIX)
Windows version
Windows 11 version 24H2 (22621, October 2024 Update)
IDE
Visual Studio 2022
Additional context
No response