I want to have the view model of my main window inform a user control that the sorting of an ObservableCollection
(a property of the view model) has changed via an event.
Using a shared/static method is not my solution as the main window view model should not be aware of the user control (which itself is bound to the same view model).
A list box control is using the ObservableCollection
as a source for its Items and this scenario is simply to force ScrollIntoView
on the list box.
I'm aware of the concept of RoutedEvents
and tunneling which I think might be my solution but I'm not entirely sure if that's the only option. Routing in this way is a completely new concept for me.
I've looked at this example but I would need custom events presumably as opposed to existing routing events.
Thanks.