public FranchiseMaster() { if (Application.Current.Properties.ContainsKey("Key")) { InitializeComponent(); status = false; IsPresentedChanged += FranchiseMaster_IsPresentedChanged; BindingContext = new FranchiseMasterMasterViewModel(Navigation); photo.BorderColor = Color.Silver; HomePage HomePage = new HomePage(); NavigationPage.SetHasNavigationBar(HomePage, false); _innerNavPage = new NavigationPage(HomePage) { Title = HomePage.Title }; _innerNavPage.PropertyChanged += (sender, args) => { if (args.PropertyName == NavigationPage.CurrentPageProperty.PropertyName) { _innerNavPage.Title = _innerNavPage.CurrentPage.Title; } }; _outerNavPage = new NavigationPage(_innerNavPage); Detail = _outerNavPage; } else { Navigation.PushModalAsync(new MainPage()); } }
private void MenuItemsListView_Refreshing(object sender, EventArgs e) { BindingContext = new FranchiseMasterMasterViewModel(Navigation); MenuItemsListView.IsRefreshing = false; }