完成菜单树的转换

This commit is contained in:
2025-07-26 14:12:14 +08:00
parent 527fb88cdf
commit 825f51d1ce
5 changed files with 49 additions and 16 deletions

View File

@@ -32,7 +32,7 @@
<DataTemplate x:Key="NavigationViewMenuItem"
DataType="{x:Type mo:MenuBean}">
<ui:NavigationViewItem Content="{Binding Header}"
MenuItemsSource="{Binding Items }">
MenuItemsSource="{Binding Children }">
<ui:NavigationViewItem.Icon>
<ui:FontIcon Glyph="{Binding Icon}" />
</ui:NavigationViewItem.Icon>
@@ -60,7 +60,7 @@
IsBackButtonVisible="Collapsed"
IsBackEnabled="False"
SelectionFollowsFocus="Disabled"
MenuItemsSource="{Binding DataServices.Menus}"
MenuItemsSource="{Binding DataServices.MenuTrees}"
MenuItemTemplate="{StaticResource NavigationViewMenuItem}"
SelectionChanged="NavigationView_SelectionChanged">