0

I am working with the Community toolkit, after opening the Popup when I minimize or maximize the window the popup gets closed.

To reproduce the issue please follow the below steps.

  • Run the attached project.

  • Click on the button to open the popup.

  • Minimize and Maximize the window.

  • See the popup is getting closed.

    Get the project from here

Expected behavior: Popup should not close when the window is minimized or maximized.

Basic Information

Visual Studio: Visual Studio 2022 version 17.5 Preview 1.0

Community Toolkit Version: 2.0.0

Affected Platform : Windows SDK 10.0.19041.0

difi brasad
  • 289
  • 2
  • 13
  • 1
    This is because you have CanBeDismissedByTappingOutsideOfPopup set to true. When the window is closed, the popup loses focus so it closes. If you do not want it to close, set ```CanBeDismissedByTappingOutsideOfPopup = false;``` – tval Nov 18 '22 at 16:32
  • @tval I have added CanBeDismissedByTappingOutsideOfPopup = false; as well but still popup closing on minimize or maximize. – difi brasad Nov 21 '22 at 05:38

1 Answers1

0

I can replicate your issue and there is a known issue about this problem.

You can follow it up here: https://github.com/CommunityToolkit/Maui/issues/774.

Thanks for your feedback and patience.

Alexandar May - MSFT
  • 6,536
  • 1
  • 8
  • 15