-
Notifications
You must be signed in to change notification settings - Fork 421
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix Hot Reload with Popup Call AddLogicalChild/RemoveLogicalChild when the popup is shown/closed so that popups are included in the logical (and visual) tree, so that Hot Reload works for them. The Live Visual Tree VS UI now shows popup content as well. Fixes #620 As Shane explained to me, the rule as of MAUI in .NET8 is that whenenever Parent is set on an Element, AddLogicalChild should also be called to include the element in the logical children. RemoveLogicalChild should be called when the Parent is set to null. This may be more automatic in .NET9, but for .NET8 that's what's needed so that the logical tree is kept up to date. * Remove setting the Parent as that's not needed Shane pointed out that Add/RemoveLogicalChild also updates the parent, so there's no need for our code to do that as well. * Protect against NREs for all calls to AddLogicalChild --------- Co-authored-by: Brandon Minnick <[email protected]> Co-authored-by: Pedro Jesus <[email protected]>
- Loading branch information
1 parent
3c26964
commit 9628467
Showing
5 changed files
with
47 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters