Source/Xamarin/Prism.DryIoc.Forms/DryIocExtensions.cs
/// <summary>
/// Registers a Page for navigation.
/// </summary>
/// <typeparam name="TView">The Type of Page to register</typeparam>
/// <typeparam name="TViewModel">The ViewModel to use as the unique name for the Page</typeparam>
Registers a Page for navigation.
Registers a Page for navigation .
public static void RegisterTypeForNavigation<TView, TViewModel>(this IContainer container, string name = null) 
            where TView : Page
            where TViewModel : class
        {
            container.RegisterTypeForNavigationWithViewModel<TViewModel>(typeof(TView), name);
        }
public static void RegisterTypeForNavigation < TView , TViewModel > ( this IContainer container , string name = null ) where TView : Page where TViewModel : class { container . RegisterTypeForNavigationWithViewModel < TViewModel > ( typeof ( TView ) , name ) ; }
Registers a Page for navigation.
Registers a Page for navigation .
IContainer
this
name
string
typeparam
The Type of Page to register
The Type of Page to register
typeparam
The ViewModel to use as the unique name for the Page
The ViewModel to use as the unique name for the Page