I have lots of pain with RequestNavigate. Here is my code
public static void Navigate(this IRegionManager regionManager, Type type)
{
regionManager.RequestNavigate("MainRegion",
type.FullName,
result =>
{
});
}
In callback result.Error is null.
The number of ActiveViews in RegionManager is changing correctly. The needed view is marked as active. But visually nothing changes.
I made an experiment removing all views before RequestNavigate
regionManager.Regions["MainRegion"].RemoveAll();
and got visual update, so everything is registered correctly, but I need my view model to keep alive.
If you register the view type for navigation with your container:
...you can navigate to it like this: