Little丶Dreams
Little丶Dreams
item didn't show because of Template is null, when NavigationView ItemTemplate Changed, NavigationView will call UpdateMenuItemsTemplate() to set NavigationViewItem's Template. and Wpf.Ui.Controls.NavigationView source code NavigationView.Navigation.cs line: 175 - 213 -...
hi, Wpf.Ui.Controls.NavigationView source code NavigationView.Navigation.cs line: 175 - 213 - 219 if (SelectedItem != NavigationStack[0] && NavigationStack[0].IsMenuElement) { SelectedItem = NavigationStack[0]; OnSelectionChanged(); } if your item is NavigationViewItem , try...
> But the indentation of the submenu is incorrect base on: https://github.com/lepoco/wpfui/pull/964/files   You can refer to the above content about ObservableCollection.
有可能是let引发的,ECMAScript 6(2015)才引入的let,我这暂时没环境复测,有条件的话把前端代码里的let变为var试试。