Fixed an issue where clearing the Items from a DarkDropDown did not also clear the menu.

This commit is contained in:
James Dunlap 2020-06-27 14:13:16 -05:00
parent 79db58c28e
commit 9f0f4eb70d

View File

@ -257,6 +257,12 @@ namespace DarkUI.Controls
}
}
if (e.Action == NotifyCollectionChangedAction.Reset)
{
_menu.Items.Clear();
SelectedItem = null;
}
ResizeMenu();
}