From 9fb6543b556a99b62b82d9923af5976e63f1fe1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Little=E4=B8=B6Dreams?= Date: Tue, 28 Apr 2026 14:11:14 +0800 Subject: [PATCH] Add UpdateAutoSuggestBoxSuggestions call on collection change --- src/Wpf.Ui/Controls/NavigationView/NavigationView.Properties.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Wpf.Ui/Controls/NavigationView/NavigationView.Properties.cs b/src/Wpf.Ui/Controls/NavigationView/NavigationView.Properties.cs index 43086aa16..2e1bd1df1 100644 --- a/src/Wpf.Ui/Controls/NavigationView/NavigationView.Properties.cs +++ b/src/Wpf.Ui/Controls/NavigationView/NavigationView.Properties.cs @@ -541,6 +541,7 @@ NotifyCollectionChangedEventArgs e private void OnMenuItems_CollectionChanged(object? sender, NotifyCollectionChangedEventArgs e) { + UpdateAutoSuggestBoxSuggestions(); if (e.NewItems is null) { return; @@ -580,6 +581,7 @@ private static void OnMenuItemsSourceChanged(DependencyObject? d, DependencyProp private void OnFooterMenuItems_CollectionChanged(object? sender, NotifyCollectionChangedEventArgs e) { + UpdateAutoSuggestBoxSuggestions(); if (e.NewItems is null) { return;