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 NavigationView's heirarchical chevron #6141

Merged
merged 3 commits into from
Oct 29, 2021

Conversation

StephenLPeters
Copy link
Contributor

The Chevron isn't needed for the majority of navigation view items but was being created regardless. This change makes it so the AnimatedIcon isn't loaded until it is actually needed.

Also fixes an issue in AnimatedIcon where the AnimatedVisual was being created twice.

…d. Fix a bug in AnimatedIcon where the AnimatedVisuals would be created twice on initial load.
@ghost ghost added the needs-triage Issue needs to be triaged by the area owners label Oct 22, 2021
@StephenLPeters
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@StephenLPeters StephenLPeters added area-AnimatedIcon area-NavigationView NavView control area-Performance team-Controls Issue for the Controls team and removed needs-triage Issue needs to be triaged by the area owners labels Oct 22, 2021
@StephenLPeters
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@StephenLPeters
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@@ -17,7 +17,7 @@ MicaController::~MicaController()
// Workaround for null ref exception in Window::get_SystemBackdrop when the Window is shutting down.
// GenerateRawElementProviderRuntimeId will trigger an exception caught below and thus prevent the
// crashing target.SystemBackdrop() call.
auto runtimeId = winrt::Automation::Peers::AutomationPeer::GenerateRawElementProviderRuntimeId();
auto const runtimeId = winrt::Automation::Peers::AutomationPeer::GenerateRawElementProviderRuntimeId();
Copy link
Contributor

Choose a reason for hiding this comment

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

Why are we saving this if we are not using the value?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good point, I believe the answer is there is a cppguidelines checker static analysis has a rule that functions with a return value should be stored.

Copy link
Contributor

Choose a reason for hiding this comment

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

I see, yeah makes sense. This won't make a big difference but should we then rename the variable to ignored to indicate that this is intentional?

Copy link
Contributor

@beervoley beervoley left a comment

Choose a reason for hiding this comment

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

LGTM :)

Copy link
Member

@kmahone kmahone left a comment

Choose a reason for hiding this comment

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

:shipit:

Copy link
Contributor

@ranjeshj ranjeshj left a comment

Choose a reason for hiding this comment

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

:shipit:

@StephenLPeters StephenLPeters merged commit 7ec5fb5 into main Oct 29, 2021
@StephenLPeters StephenLPeters deleted the user/stpete/DelayLoadNavViewChevrons branch October 29, 2021 19:14
@ghost
Copy link

ghost commented Jan 19, 2022

🎉Microsoft.UI.Xaml vMicrosoft.Experimental.UI.Xaml.2.8.0-prerelease.220118001 has been released which incorporates this pull request.:tada:

Handy links:

@ghost
Copy link

ghost commented Apr 14, 2022

🎉Microsoft.UI.Xaml v2.8.0-prerelease.220413001 has been released which incorporates this pull request.:tada:

Handy links:

@ghost
Copy link

ghost commented Jul 13, 2022

🎉Microsoft.UI.Xaml v2.8.0-prerelease.220712001 has been released which incorporates this pull request.:tada:

Handy links:

@ghost
Copy link

ghost commented Jul 18, 2022

🎉Microsoft.UI.Xaml v2.8.0 has been released which incorporates this pull request.:tada:

Handy links:

@ghost
Copy link

ghost commented Jan 3, 2023

🎉Microsoft.UI.Xaml v2.8.2 has been released which incorporates this pull request.:tada:

Handy links:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants