microsoft / microsoft-ui-xaml

Windows UI Library: the latest Windows 10 native controls and Fluent styles for your applications
MIT License
6.35k stars 677 forks source link

Apps wider than left monitor in 2 or more monitor system is forced into Full Screen on left monitor. #6798

Open StevenEdwardWood opened 2 years ago

StevenEdwardWood commented 2 years ago

Describe the bug

Windows 10 is supposed to restore applications to the same size and position as when they were closed...as long as the size and position is not invalid. But, when some applications were resized on a system with more than one monitor so that the width of the application is larger than the width of the left monitor Windows 10 forces the application into full screen on the left monitor and there is no programmable means to restore the application.

Steps to reproduce the bug

Steps to reproduce:

  1. Create a blank Application (Universal Windows) in newest vanilla version of Visual Studio 2019 with no additional NuGet packages.
  2. Run on newest available version of Windows 10 with 2 or more monitors.
  3. Resize application so that it's wider than the left monitor.
  4. Close the application.
  5. Restart the application. Undesired Result is that the application is forced into Full Screen on the left monitor.

Expected behavior

Expected Result is that the application restarts in the same position and size as it was when it was closed.

Screenshots

No response

NuGet package version

No response

Windows app type

Device form factor

Desktop

Windows version

Windows 10 (21H1): Build 19043

Additional context

No response

StephenLPeters commented 2 years ago

@MikeHillberg thoughts on where to route this issue?

StevenEdwardWood commented 2 years ago

Thanks for responding. My question in the UWP Developer forum was answered by RoyLi-MSFT indicating that I should open the issue you are responding to. According to Roy there is no programmer access for me to fix this behavior. I would assume that the current behavior is how Windows handles UI-XAML for single monitor systems and there was no additional cases handled for multiple monitor systems. Or, perhaps the case for multiple monitor systems is failing and falling through to the single monitor case. In any event it needs to be fixed where Windows handles initialization of the client window to either add or fix the case where the app is being initialized on a multiple monitor system.

RoyLi-MSFT mentioned you in a comment on https://docs.microsoft.com/answers/comments/762873/view.html When I resize my UWP app across multiple monitors then close and restart it the app goes full screen. on Microsoft Q&A:

@SteveWood-4261 According to the information I got from the team, there are too many problems getting to the point in the code. Please open an issue on the microsoft-ui-xaml https://github.com/microsoft/microsoft-ui-xaml/issues . So the team will continue digging into this behavior.

From: Stephen L Peters @.> Sent: Thursday, March 10, 2022 5:16 PM To: microsoft/microsoft-ui-xaml @.> Cc: Steven Edward Wood @.>; Author @.> Subject: Re: [microsoft/microsoft-ui-xaml] Apps wider than left monitor in 2 or more monitor system is forced into Full Screen on left monitor. (Issue #6798)

@MikeHillberg https://github.com/MikeHillberg thoughts on where to route this issue?

— Reply to this email directly, https://github.com/microsoft/microsoft-ui-xaml/issues/6798#issuecomment-1064644247 view it on GitHub, or https://github.com/notifications/unsubscribe-auth/ALC75WKOIEO5FHLFU6HHK23U7KGC3ANCNFSM5QFCPFSA unsubscribe. Triage notifications on the go with GitHub Mobile for https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 iOS or https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub Android. You are receiving this because you authored the thread.Message ID: @.***>

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 5 days.

StevenEdwardWood commented 1 year ago

OK. So...how do I remove the stale label? If this can't be fixed in this version of Windows then fine, but it should be incorporated into new versions otherwise you may want to change the name of the operating system to Sometimes Windows but Sometimes Just one Window.