Source/Xamarin/Prism.DryIoc.Forms/PrismApplication.cs
/// <summary>
/// Resolve the view model of <paramref name="type"/> associated with <paramref name="page"/>
/// </summary>
/// <remarks>
/// The method will set the <see cref="IPageAware.Page" /> property on the <see cref="INavigationService"/>  
/// instance that will be injected into the view model.
/// </remarks>
/// <param name="page">The <see cref="Page"/> associated with the view model</param>
/// <param name="type">View model type to resolve</param>
/// <returns>View model instance of type <paramref name="type"/></returns>
Resolve the view model of  associated with
Resolve the view model of associated with
protected virtual object PageViewModelFactory(Page page, Type type)
        {
            var navigationService = CreateNavigationService(page);
            var resolver = Container.Resolve<Func<INavigationService, object>>(type);
            return resolver(navigationService);
        }
protected virtual object PageViewModelFactory ( Page page , Type type ) { var navigationService = CreateNavigationService ( page ) ; var resolver = Container . Resolve < Func < INavigationService , object > > ( type ) ; return resolver ( navigationService ) ; }
Resolve the view model of  associated with
Resolve the view model of associated with
// Resolve type using the instance navigationService
View model instance of type
View model instance of type
page
Page
The  associated with the view model
The associated with the view model
type
Type
View model type to resolve
View model type to resolve
remarks
The method will set the  property on the
instance that will be injected into the view model.
The method will set the property on the instance that will be injected into the view model .