Little丶Dreams

Results 4 comments of 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 ![image](https://github.com/lepoco/wpfui/assets/9262469/5fd70d71-3d06-4d49-b4d5-ec275cb6f9ac) ![image](https://github.com/lepoco/wpfui/assets/9262469/3e390e15-2c8e-4d97-863b-69098e58f95e) You can refer to the above content about ObservableCollection.

有可能是let引发的,ECMAScript 6(2015)才引入的let,我这暂时没环境复测,有条件的话把前端代码里的let变为var试试。