Skip to content

[Windows] Add a root view for a window to manage pages and overlays#8428

Merged
PureWeen merged 3 commits intorelease/6.0.4xx-sr2from
dev/winow-root
Jun 30, 2022
Merged

[Windows] Add a root view for a window to manage pages and overlays#8428
PureWeen merged 3 commits intorelease/6.0.4xx-sr2from
dev/winow-root

Conversation

@mattleibow
Copy link
Copy Markdown
Member

Description of Change

Over the last set of commits, we tried to improve performance and reduce the view nesting and layout churn. Inadvertently we removed a root view that appeared to not be used. #7172 This is a result of code not actually using the type and was just casting to Panel or some other base type.

This PR adds the view back, but also adds it back in a more useful way. Most notable the page managers use the type directly to add pages and the overly managers use it to add overlays. Instead of everyone grabbing the view and putting their bits in, we should use the new api so that overlays correctly are added to the top and pages underneath.

Issues Fixed

Fixes #8096

@mattleibow mattleibow added platform/windows area-navigation NavigationPage area-tooling XAML & C# Hot Reload, XAML Editor, Live Visual Tree, Live Preview, Debugging labels Jun 29, 2022
@mattleibow mattleibow added this to the 6.0-sr3 milestone Jun 29, 2022
@drasticactions
Copy link
Copy Markdown
Contributor

@mattleibow Can you try hovering over the Live Visual Tree in Visual Studio and verify that the adorners are appearing again over MAUI elements? I don't think there is an API change here so the current version (I think) "should just work (tm)".

@jsuarezruiz
Copy link
Copy Markdown
Contributor

/azp run

Copy link
Copy Markdown
Member

@PureWeen PureWeen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I merged this with the net6.0 branch to get the RequestedTheme fixes. It seems like the modal tests on WinUI are crashing with this change.

If I switch to net6.0 they run fine.
If I run it from this branch they crash.

image

mattleibow and others added 2 commits June 30, 2022 13:48
- make sure pages always get inserted below overlay
@PureWeen PureWeen changed the base branch from net6.0 to release/6.0.4xx-sr2 June 30, 2022 18:48
Copy link
Copy Markdown
Member Author

@mattleibow mattleibow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works for me on Android and Windows. There is a bit of an offset for Android, but @drasticactions has a PR/Fix/Merged in the UI Tools repos.

@mattleibow mattleibow modified the milestones: 6.0-sr3, 6.0-sr2 Jun 30, 2022
@mattleibow mattleibow removed this from the 6.0-sr2 milestone Jun 30, 2022
@PureWeen PureWeen merged commit 4fe9d92 into release/6.0.4xx-sr2 Jun 30, 2022
@PureWeen PureWeen deleted the dev/winow-root branch June 30, 2022 20:46
@mattleibow mattleibow added this to the 6.0-sr3 milestone Jul 4, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Dec 20, 2023
@samhouts samhouts added the fixed-in-6.0.408 Look for this fix in 6.0.408! label Aug 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-navigation NavigationPage area-tooling XAML & C# Hot Reload, XAML Editor, Live Visual Tree, Live Preview, Debugging fixed-in-6.0.408 Look for this fix in 6.0.408! platform/windows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants