public CustomFlyoutPage(IServiceProvider services, MainViewModel viewModel) : base() { InitializeComponent(); Detail = new CustomNavigationPage(services, viewModel); Detail.PropertyChanged += Detail_PropertyChanged; Flyout.BindingContext = viewModel; }
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(); }