mirror of
https://github.com/colhountech/DarkUI.Net5.git
synced 2025-07-04 16:19:25 +03:00
Fixed an issue where clearing the Items from a DarkDropDown did not also clear the menu.
This commit is contained in:
parent
79db58c28e
commit
9f0f4eb70d
@ -257,6 +257,12 @@ namespace DarkUI.Controls
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (e.Action == NotifyCollectionChangedAction.Reset)
|
||||||
|
{
|
||||||
|
_menu.Items.Clear();
|
||||||
|
SelectedItem = null;
|
||||||
|
}
|
||||||
|
|
||||||
ResizeMenu();
|
ResizeMenu();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user