On startup i bind an ObservableCollection to a menu:
Menu.ItemsSource = _manager.Selection;
This menu correctly displays all objects from the collection.
Now i want to update the collection and add/remove some of the items in it:
private void OnBoxClick(object sender, RoutedEventArgs e)
{
_manager.Selection = _manager.GetNewSelection();
PropertyChanged?.Invoke(this, new CollectionChangeEventArgs(CollectionChangeAction.Refresh, _manager.Selection));
}
public event CollectionChangeEventHandler PropertyChanged;
But the ui is still displaying how it was before..
What is missing?