-
Notifications
You must be signed in to change notification settings - Fork 705
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
NavigationView: Fix IsPaneOpen=false ignored on launch when pane is launched in Left expanded state #3197
NavigationView: Fix IsPaneOpen=false ignored on launch when pane is launched in Left expanded state #3197
Conversation
I'd like @ojhad to weigh in, we had a conversation about this behavior during a debug session a few weeks ago. Do you remember the context of that conversation? |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
If I remember correctly, we were launching into compact mode and that the pane was being forced into the closed state regardless of the However changing the The problem was that the |
@Felix-Dev The pipeline fix just went in, could you please merge master into this PR? |
@StephenLPeters Merged with master. |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
…aunched in Left expanded state (microsoft/microsoft-ui-xaml#3197)
Description
This PR fixes an issue where setting the
IsPaneOpen
property of the NavigationView to false before launching the NavigationView in the Left expanded state (either explicitly or via theAuto
pane display mode) would have no effect (the pane is launched in an open state).The updated behavior of the NavigationView.IsPaneOpen API is the following on NavigationView launch:
(*) = This behavior has been updated as part of this PR. The pane is now closed when
IsPaneOpen
is set to false and the pane is launched in Left expanded state (either explicitly or via theAuto
display mode). All other configurations you see in the table above are the current behavior and unchanged by this PR.Once this PR has been merged we should also consider providing this information about the PaneDisplayMode and IsPaneOpen API interplay on NavigationView launch on the NavigationView.IsPaneOpen API documentation page (for example in a "Remarks" section) starting with whatever WinUI version will include this change.
Motivation and Context
Fixes #2391.
How Has This Been Tested?
Tested manually and added an API test.
Additional Context
@YuliKl FYI.