Skip to content

[BUG] Popup show on unexpected window when app using multiple window #1616

@jingliancui

Description

@jingliancui

Is there an existing issue for this?

  • I have searched the existing issues

Did you read the "Reporting a bug" section on Contributing file?

Current Behavior

There have 2 window in the app,
When I want to show the popup in the second window, but the popup show on the first window.

Expected Behavior

There have 2 window in the app,
When I want to show the popup in the second window, the popup should be shown on the second window.

Steps To Reproduce

  1. open the sln using vs 2022.
  2. f5 to run the app
  3. click "OpenWin" button on the first window to open the second window.
  4. click "OpenPopup" button to show the Popup

Link to public reproduction project repository

https://github.com/jingliancui/MAUIMultipleWinPopupIssue

Environment

- .NET MAUI CommunityToolkit:8
- OS:Windows 11 19041.0
- .NET MAUI: 8

Anything else?

no

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/viewsIssue/Discussion/PR that has to do with ViewsbugSomething isn't workingunverified

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions