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

Fix the PaneVisible initialziation problem #1179

Merged
merged 1 commit into from
Aug 20, 2019

Conversation

licanhua
Copy link
Contributor

Fix #595.
When PaneVisible=false in Xaml, visualstate is not updated to PaneCollapsed correctly.
UpdatePaneVisibility calls VisualStateManager::GoToState.
When PaneVisible = true before OnApplyTemplate, the visualstate change is ignored and didn't take into effect.
This fix just rerun UpdatePaneVisibility in OnApplyTemplate to fix the problem.

@licanhua licanhua requested a review from a team as a code owner August 19, 2019 23:39
@jevansaks jevansaks added the release note PR that we want to call out in the next release summary label Aug 20, 2019
@licanhua licanhua added the auto merge This PR will be merged once all checks pass label Aug 20, 2019
@kmahone
Copy link
Member

kmahone commented Aug 20, 2019

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@msft-github-bot msft-github-bot merged commit 532b504 into master Aug 20, 2019
@msft-github-bot msft-github-bot deleted the user/canli/fixPaneVisible branch August 20, 2019 20:37
@msft-github-bot
Copy link
Collaborator

🎉Microsoft.UI.Xaml v2.2.190822001-prerelease 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
Labels
auto merge This PR will be merged once all checks pass release note PR that we want to call out in the next release summary
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CompactPane doesn't always disappear in Minimal mode
4 participants