-
-
Notifications
You must be signed in to change notification settings - Fork 962
Cannot Update Navigation menu items at Runtime #751
Copy link
Copy link
Open
Labels
MVVM_DIIssues related to MVVM and Dependency Injection.Issues related to MVVM and Dependency Injection.bugSomething isn't workingSomething isn't workingcontrolsChanges to the appearance or logic of custom controls.Changes to the appearance or logic of custom controls.navigationChanges to navigation related controls.Changes to navigation related controls.
Milestone
Metadata
Metadata
Assignees
Labels
MVVM_DIIssues related to MVVM and Dependency Injection.Issues related to MVVM and Dependency Injection.bugSomething isn't workingSomething isn't workingcontrolsChanges to the appearance or logic of custom controls.Changes to the appearance or logic of custom controls.navigationChanges to navigation related controls.Changes to navigation related controls.
Describe the bug
I am trying to add few Items based on configuration after the user logs in but the issue is I can see that the item is been added to the navigation menu but for some reason its not shown in the layout.
I can tell that the property is being changed but its not updating in the UI.
It works fine if I add the
NavigationViewItemat constructor but not when i use aCommandor for starters using the default events like for exampleNavigationView_PaneOpenedTo Reproduce
Try adding a NavigationViewItem after page load like in event or Relay Command ,etc
here is old data

I can see that the item is added in navigation item

after clearing the list and adding new items:

but its not appearing in the main window navigation
Expected behavior
The NavigationViewItem Should be added in Navigation menu items list
Screenshots
No response
OS version
Windows 10
.NET version
.net 7
WPF-UI NuGet version
using the git development branch's dll with commit 438edf8
Additional context
No response