Open ucollina82 opened 3 years ago
Seems that event IExpectViewLoadCallaback instead is triggered
The problem here is that the events needed are not raised by WPF. When a view is resolved we attach the required behaviors. If the view is a window it gets a different behavior than if it's a user control.
@ucollina82 can you explain what is the need? Why there is a need for a view shown event when using regions?
In this circumstance there was the need to understand when to initialize the viewmodel of a usercontrol (in a region) starting from the loading of the view. It was then chosen to hook to the IExpectViewLoadedCallback event but if there is another way to do this in a Region, that's fine
It seems that in a ViewModel associated with a Region the event of IExpectViewShownCallback is not triggered