public CustomFlyoutPage(IServiceProvider services, MainViewModel viewModel) :
     base()
 {
     InitializeComponent();
     Detail = new CustomNavigationPage(services, viewModel);
     Detail.PropertyChanged += Detail_PropertyChanged;
     Flyout.BindingContext   = viewModel;
 }
예제 #2
0
        public CustomFlyoutPage(IServiceProvider services, MainViewModel viewModel) :
            base()
        {
            InitializeComponent();
            if (Application.Current.MainPage == null)
            {
                Detail = new CustomNavigationPage(services, viewModel);
            }
            else
            {
                Detail = new MainPage(services, viewModel);
            }

            Flyout = CreateFlyout();
        }