Fix NavigationView pane not closed by default when using IsPaneOpen="False"#1012
Fix NavigationView pane not closed by default when using IsPaneOpen="False"#1012pomianowski merged 1 commit intolepoco:developmentfrom tmijail:IsPaneOpenFix
Conversation
Call VisualStateManager.GoToState once the control has loaded Closes #741
|
There's a bug: To reproduce, open the Gallery App and head over to the Navigations Page. The problem was introduced when you ran I'll try to help narrow down what's going on. In the GalleryApp, NavigationViewPage.xaml, we use a and in NavigationViewCompact.xaml (LeftCompactNavigationViewItemTemplate), we have animations that run visual state changes Even though the template for |
As @koal44 pointed out, lepoco#1012 introduced a bug which made the app crash when using FluentLeft navigation because updating the visual state tries to animate a width to or from OpenPaneLength=NaN. To avoid this, don't try to change the visual state for navigation view modes that don't have an open and a compact state.
Pull request type
Please check the type of change your PR introduces:
What is the current behavior?
Setting
IsPaneOpen="False"on aNavigationViewis ignored.Issue Number: #741
What is the new behavior?
When
IsPaneOpen="False", the pane starts collapsed.Other information