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

Fixed NavView in ContentDialog crash #2920

Merged
merged 11 commits into from
Sep 2, 2020

Conversation

ojhad
Copy link
Contributor

@ojhad ojhad commented Jul 15, 2020

Description

When NavView is shown in a ContentDialog, there is a scenario where the SplitView tries to add children to the popup root while it is being measured (which causes a crash since NavView itself is in the popup root). Due to the fact that this SplitView API call (updating the DisplayMode property) modifies elements in the tree outside of itself, we should defer that call, whenever it comes from OnApplyTemplate, to be executed in the OnLoaded callback.

Motivation and Context

Fixes #2713

How Has This Been Tested?

Added interaction test

@msft-github-bot msft-github-bot added the needs-triage Issue needs to be triaged by the area owners label Jul 15, 2020
@ojhad
Copy link
Contributor Author

ojhad commented Jul 15, 2020

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@StephenLPeters StephenLPeters 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 Jul 15, 2020
@StephenLPeters
Copy link
Contributor

@ojhad you have some visual verification failures

@ojhad
Copy link
Contributor Author

ojhad commented Jul 17, 2020

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@StephenLPeters
Copy link
Contributor

more visual verification issues, as @Felix-Dev noted, i think the pipeline is broken. hopefully @kmahone can take a look when he gets back.

@kmahone
Copy link
Member

kmahone commented Jul 20, 2020

more visual verification issues, as @Felix-Dev noted, i think the pipeline is broken. hopefully @kmahone can take a look when he gets back.

There was an issue in the processhelixfiles.ps1 script. I have a fix out for PR: #2959

@kmahone
Copy link
Member

kmahone commented Jul 20, 2020

If you merge the latest master to pick up #2959 it should resolve the issue with the PR run.

@ojhad ojhad force-pushed the user/ojhad/contentdialognavviewfix branch from 3a71442 to 89a6e37 Compare August 4, 2020 09:06
@ojhad
Copy link
Contributor Author

ojhad commented Aug 4, 2020

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@ojhad ojhad force-pushed the user/ojhad/contentdialognavviewfix branch from 89a6e37 to 36893dc Compare August 5, 2020 06:06
@ojhad
Copy link
Contributor Author

ojhad commented Aug 5, 2020

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@ojhad ojhad force-pushed the user/ojhad/contentdialognavviewfix branch from ede73b4 to 47f8b92 Compare August 11, 2020 22:51
@ojhad
Copy link
Contributor Author

ojhad commented Aug 11, 2020

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@StephenLPeters
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@StephenLPeters
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@StephenLPeters
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@StephenLPeters
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@StephenLPeters
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@StephenLPeters
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@StephenLPeters
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@StephenLPeters StephenLPeters merged commit 647cb4d into master Sep 2, 2020
@StephenLPeters StephenLPeters deleted the user/ojhad/contentdialognavviewfix branch September 2, 2020 19:55
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.

NavigationView inside ContentDialog causes crash in WinUI3 Desktop
4 participants