Something about NavigationView #531
Answered
by
timunie
Yukikaze924
asked this question in
Q&A
-
The NavView works fine through MVVM pattern. One thing that doesn't work is the default Settings item in my NavView. How can I know that it has been clicked? Or if there is a built-in function to archive this? What i am doing right now is to add a setting item manually. But I can't make it stay at the bottom... <ui:NavigationView x:Name="MainNavigationView"
Grid.Row="1"
MenuItemsSource="{Binding SidebarButtons}"
SelectedItem="{Binding SelectedButton}"
Content="{Binding CurrentPage}"
PaneDisplayMode="Left"
OpenPaneLength="240"
IsPaneOpen="True"
IsSettingsVisible="True"
Margin="3 0 0 0">
<ui:NavigationView.MenuItemTemplate>
<DataTemplate DataType="{x:Type m:SidebarButton}">
<ui:NavigationViewItem Content="{Binding Label}" IconSource="{Binding Icon}"/>
</DataTemplate>
</ui:NavigationView.MenuItemTemplate>
</ui:NavigationView> |
Beta Was this translation helpful? Give feedback.
Answered by
timunie
Mar 4, 2024
Replies: 1 comment 2 replies
Answer selected by
Yukikaze924
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The sample App has all docs in you need: