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

IsPaneVisible doesn't actually hide the whole pane (just the content) #114

Merged
merged 5 commits into from
Jan 28, 2019

Conversation

chrisglein
Copy link
Member

The binding here was targeting the root of the content hosted within the SplitView, but that's not the element that would need to be hidden to actually cause the whole pane to collapse. That node is owned by SplitView. SplitView doesn't offer any sort of succinct property to collapse the pane like what NavigationView's IsPaneVisible property tries to offer, but we can recreate the same effect by driving a couple of different SplitView properties.

This change drives a VSM for PaneVisible/PaneCollapsed and uses that to configure the SplitView.

Internal issue

@chrisglein chrisglein requested a review from a team as a code owner December 20, 2018 01:44
@chrisglein chrisglein self-assigned this Dec 20, 2018
Copy link
Member

@jevansaks jevansaks left a comment

Choose a reason for hiding this comment

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

Approved, assuming an automated test is added to cover this.

@kmahone
Copy link
Member

kmahone commented Dec 20, 2018

You will need to merge with master to pick up the Helix fix to get WinUI-Public-Tests working again.

@chrisglein chrisglein force-pushed the user/cglein/navIsPaneVisible branch 2 times, most recently from dbe08fc to 8ee6fcb Compare January 16, 2019 00:43
@chrisglein chrisglein force-pushed the user/cglein/navIsPaneVisible branch from 8ee6fcb to 7ebe9db Compare January 24, 2019 19:16
@chrisglein chrisglein merged commit e4c4c29 into master Jan 28, 2019
@chrisglein chrisglein deleted the user/cglein/navIsPaneVisible branch January 28, 2019 18:33
@msft-github-bot
Copy link
Collaborator

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

Handy links:

StephenLPeters pushed a commit that referenced this pull request Feb 9, 2019
…#114)

* Add IsPaneVisible to repro issue with NavigationView.IsPaneVisible not hiding the pane in left mode
* Drive some states based on whether the pane is visible so that we can actually turn off the pane, not just the pane content
* Add a test (EnsurePaneCanBeHidden) that validates the fix
* Move write of SplitView.DisplayMode out of the VSM since it's also written in UpdateVisualStateForDisplayModeGroup.
* Add missing projects to the Debug_test configuration
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants