Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Setup Shell to only use the LogicalChildren for reporting its LogicalChildren #13462

Merged
merged 6 commits into from
Jan 22, 2021

Conversation

PureWeen
Copy link
Contributor

@PureWeen PureWeen commented Jan 19, 2021

Description of Change

Shift Shell over so it returns everything from the Logical Children structure which plays into Hot Reload and the Live Visual Tree better. Initially I didn't use LogicalChildren because Page (the base class of Shell) makes a bunch of assumptions against its LogicalChildren. This PR intercepts those assumptions and just lets Shell manage its logical children

Issues Resolved

Testing Procedure

  • Validate that Live Visual Tree displays flyout items/flyoutheader/flyoutfooter/flyoutcontent

PR Checklist

  • Targets the correct branch
  • Tests are passing (or failures are unrelated)

@PureWeen PureWeen added the DO-NOT-MERGE-!!! 🛑 This is in progress and needs to be updated before it can be merged. label Jan 19, 2021
@@ -379,7 +379,7 @@ protected void UpdateChildrenLayout()
var element = LogicalChildren[i];
if (element is VisualElement c)
{
if (c.Bounds != startingLayout[i])
if (startingLayout.Count <= i || c.Bounds != startingLayout[i])
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Now that generated flyout items are added to the LogicalChildren the startingLayout.Count no longer matches up with LogicalChildren.Count after LayoutChildren is called

@PureWeen PureWeen changed the title [WiP] Shell visual tree Setup Shell to only use the LogicalChildren for reporting its LogicalChildren Jan 20, 2021
@PureWeen PureWeen added blocker Issue blocks next stable release. Prioritize fixing and reviewing this issue. and removed DO-NOT-MERGE-!!! 🛑 This is in progress and needs to be updated before it can be merged. labels Jan 20, 2021
@PureWeen PureWeen added this to To do in vNext+1 (5.0.0) via automation Jan 20, 2021
@PureWeen PureWeen added this to the 5.0.0 milestone Jan 20, 2021
@PureWeen PureWeen moved this from To do to In Review in vNext+1 (5.0.0) Jan 20, 2021
@PureWeen PureWeen merged commit 11b3525 into 5.0.0 Jan 22, 2021
vNext+1 (5.0.0) automation moved this from In Review to Done Jan 22, 2021
@PureWeen PureWeen deleted the shell_visual_tree branch January 22, 2021 20:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
blocker Issue blocks next stable release. Prioritize fixing and reviewing this issue.
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

[Bug] Shell Flyout Header/Footer/more aren't included in visual tree - missing mutations
4 participants