Mobile/CafeLib.Mobile/Views/CafeFlyoutPage.cs
/// <summary>
/// Return the proper view model from master-detail context. 
/// </summary>
/// <returns></returns>
Return the proper view model from master-detail context.
Return the proper view model from master - detail context .
private BaseViewModel GetMasterDetailViewModel()
        {
            switch (Detail)
            {
                case NavigationPage navPage:
                    return navPage.CurrentPage.GetViewModel<BaseViewModel>();
                case null:
                    return GetViewModel<BaseViewModel>();
                case not null:
                    return Detail.GetViewModel<BaseViewModel>();
            }
        }
private BaseViewModel GetMasterDetailViewModel ( ) { switch ( Detail ) { case NavigationPage navPage : return navPage . CurrentPage . GetViewModel < BaseViewModel > ( ) ; case null : return GetViewModel < BaseViewModel > ( ) ; case not null : return Detail . GetViewModel < BaseViewModel > ( ) ; } }
Return the proper view model from master-detail context.
Return the proper view model from master - detail context .
None