/// <summary> /// Registers an object for navigation. /// </summary> /// <typeparam name="TView">The Type of object to register as the view</typeparam> /// <typeparam name="TViewModel">The ViewModel to use as the DataContext for the view</typeparam> /// <param name="name">The unique name to register with the view</param> /// <param name="container"></param> public static DependencyInjectionContainer RegisterTypeForNavigation <TView, TViewModel>(this DependencyInjectionContainer container, string name = null) { return(container.ConfigureTypeForNavigationWithViewModel <TViewModel>(typeof(TView), name)); }