Source/Xamarin/Prism.DryIoc.Forms/DryIocExtensions.cs
/// <summary>
/// Registers a Page for navigation.
/// </summary>
/// <typeparam name="TView">The Type of Page to register</typeparam>
/// <param name="name">The unique name to register with the Page</param>
Registers a Page for navigation.
Registers a Page for navigation .
public static void RegisterTypeForNavigation<TView>(this IContainer container, string name = null) where TView : Page
        {
            var viewType = typeof(TView);
            if (string.IsNullOrWhiteSpace(name))
                name = viewType.Name;
            container.RegisterTypeForNavigation(viewType, name);
        }
public static void RegisterTypeForNavigation < TView > ( this IContainer container , string name = null ) where TView : Page { var viewType = typeof ( TView ) ; if ( string . IsNullOrWhiteSpace ( name ) ) name = viewType . Name ; container . RegisterTypeForNavigation ( viewType , name ) ; }
Registers a Page for navigation.
Registers a Page for navigation .
IContainer
this
name
string
The unique name to register with the Page
The unique name to register with the Page
typeparam
The Type of Page to register
The Type of Page to register