Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delay load Hierarchical NavViewItem elements #6808

Merged
merged 10 commits into from
Mar 12, 2022
Merged

Conversation

ojhad
Copy link
Contributor

@ojhad ojhad commented Mar 10, 2022

Description

This PR defers the loading of NavigationViewItemMenuItemsHost and ExpandCollapseChevron related elements to only when they are needed in the Hierarchical Nav Scenario. This slightly reduces the xaml tree size when using NavigationViewItems without hierarchy.

Motivation and Context

Internal bug 37681669

@ghost ghost added the needs-triage Issue needs to be triaged by the area owners label Mar 10, 2022
@ojhad
Copy link
Contributor Author

ojhad commented Mar 10, 2022

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@ojhad ojhad changed the title Delay load some Hierarchical NavViewItem elements Delay load Hierarchical NavViewItem elements Mar 10, 2022
@ojhad
Copy link
Contributor Author

ojhad commented Mar 10, 2022

/azp run

1 similar comment
@ojhad
Copy link
Contributor Author

ojhad commented Mar 10, 2022

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

1 similar comment
@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

dev/NavigationView/NavigationViewItem.cpp Outdated Show resolved Hide resolved
dev/NavigationView/NavigationViewItem.cpp Outdated Show resolved Hide resolved
dev/NavigationView/NavigationViewItem.cpp Outdated Show resolved Hide resolved
dev/NavigationView/NavigationViewItem.cpp Outdated Show resolved Hide resolved
dev/NavigationView/NavigationViewItem.cpp Outdated Show resolved Hide resolved
dev/NavigationView/NavigationViewItem.h Outdated Show resolved Hide resolved
dev/NavigationView/NavigationViewItemPresenter.cpp Outdated Show resolved Hide resolved
dev/NavigationView/NavigationViewItemPresenter.cpp Outdated Show resolved Hide resolved
@ojhad
Copy link
Contributor Author

ojhad commented Mar 11, 2022

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@ojhad ojhad requested a review from RBrid March 11, 2022 22:10
@ojhad ojhad merged commit d3fef08 into main Mar 12, 2022
@ojhad ojhad deleted the user/ojhad/navviewperformance branch March 12, 2022 00:22
@ojhad ojhad added area-NavigationView NavView control team-Controls Issue for the Controls team and removed needs-triage Issue needs to be triaged by the area owners labels Mar 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-NavigationView NavView control team-Controls Issue for the Controls team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants