Mobile/CafeLib.Mobile/Services/MobileService.cs
/// <summary>
/// Resolves page associated with the viewmodel.
/// </summary>
/// <param name="viewModelType">view model type</param>
/// <returns>bounded page</returns>
Resolves page associated with the viewmodel.
Resolves page associated with the viewmodel .
private Page ResolvePage(Type viewModelType)
        {
            if (!viewModelType.GetTypeInfo().IsSubclassOf(typeof(BaseViewModel)))
            {
                throw new ArgumentException($"{nameof(viewModelType)} is not a type of BaseViewModel");
            }
            CheckResolverRegistration(viewModelType);
            return GetPageFromResolver(viewModelType);
        }
private Page ResolvePage ( Type viewModelType ) { if ( ! viewModelType . GetTypeInfo ( ) . IsSubclassOf ( typeof ( BaseViewModel ) ) ) { throw new ArgumentException ( $" { nameof ( viewModelType ) }  is not a type of BaseViewModel " ) ; } CheckResolverRegistration ( viewModelType ) ; return GetPageFromResolver ( viewModelType ) ; }
Resolves page associated with the viewmodel.
Resolves page associated with the viewmodel .
// Check resolver registration. // Obtain page from resolver.
None
viewModelType
Type
view model type
view model type