Skip to content

Commit d92eed3

Browse files
authored
fix: UpdateAutoSuggestBoxSuggestions When MenuItems_CollectionChanged (#1558)
1 parent 19b0fe5 commit d92eed3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Wpf.Ui/Controls/NavigationView/NavigationView.Properties.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,8 @@ NotifyCollectionChangedEventArgs e
511511

512512
private void OnMenuItems_CollectionChanged(object? sender, NotifyCollectionChangedEventArgs e)
513513
{
514+
UpdateAutoSuggestBoxSuggestions();
515+
514516
if (e.NewItems is null)
515517
{
516518
return;
@@ -550,6 +552,8 @@ private static void OnMenuItemsSourceChanged(DependencyObject? d, DependencyProp
550552

551553
private void OnFooterMenuItems_CollectionChanged(object? sender, NotifyCollectionChangedEventArgs e)
552554
{
555+
UpdateAutoSuggestBoxSuggestions();
556+
553557
if (e.NewItems is null)
554558
{
555559
return;

0 commit comments

Comments
 (0)