Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fix XamlRoot being set incorrectly in Popup Handler - #2476

#2476
Merged
TheCodeTraveler merged 2 commits into
CommunityToolkit:mainCommunityToolkit/Maui:mainfrom
ne0rrmatrix:FixPopupXamlRootne0rrmatrix/MauiOld:FixPopupXamlRootCopy head branch name to clipboard
Jan 29, 2025
Merged

Fix XamlRoot being set incorrectly in Popup Handler#2476
TheCodeTraveler merged 2 commits into
CommunityToolkit:mainCommunityToolkit/Maui:mainfrom
ne0rrmatrix:FixPopupXamlRootne0rrmatrix/MauiOld:FixPopupXamlRootCopy head branch name to clipboard

Conversation

@ne0rrmatrix

@ne0rrmatrix ne0rrmatrix commented Jan 28, 2025

Copy link
Copy Markdown
Member

Description of Change

This fixes incorrect XamlRoot being set when application uses modal navigation and opens a popup. The current behavior results in application crashing. This sets the XamlRoot correctly and the app does not crash. Additionally made a cosmetic size change to sizing for large popup as it is too large and covers the whole window in some situations in Multiple Popups Page.

Linked Issues

PR Checklist

  • Has a linked Issue, and the Issue has been approved(bug) or Championed (feature/proposal)
  • Has tests (if omitted, state reason in description)
  • Has samples (if omitted, state reason in description)
  • Rebased on top of main at time of PR
  • Changes adhere to coding standard
  • Documentation created or updated: https://github.com/MicrosoftDocs/CommunityToolkit/pulls

Additional information

Currently the windows implementation of Popup has the xaml root set incorrectly. I updated the XamlRoot in the handler for Popup to fix the issue. The linked issue has a CTD when using modal navigation and opening a Popup.

@TheCodeTraveler
TheCodeTraveler merged commit 2ac604e into CommunityToolkit:main Jan 29, 2025
@github-actions github-actions Bot locked and limited conversation to collaborators Jan 31, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Popup is not working on Windows whe opend from a modal

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.