dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
21.96k stars 1.71k forks source link

Application.Current?.Quit() cannot close all windows in Win Platform #22933

Open jingliancui opened 2 months ago

jingliancui commented 2 months ago

Description

Application.Current?.Quit() cannot close all windows, please see the Reproduce

Steps to Reproduce

  1. open the project using vs 2022
  2. f5 to start debug -> multiple windows will be open
  3. using mouse left click to bring the MainPage windows to activate
  4. click the "Close App" button

expect: all windows should be closed

actual: remain some windows still be opened

Link to public reproduction project repository

https://github.com/jingliancui/MAUIMultipleWinCloseAppIssue

Version with bug

8.0.40 SR5

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

windows 10.0.19041.0

Did you find any workaround?

no

Relevant log output

no
github-actions[bot] commented 2 months ago

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 and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

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

Zhanglirong-Winnie commented 2 months ago

Verified this issue with Visual Studio 17.11.0 Preview 1.1 (8.0.40&8.0.21). Can repro on Windows platform with sample project. 22933