private void itemListView_ItemClick(object sender, ItemClickEventArgs e) { if (((ItemViewModel)e.ClickedItem).Identifier != -1) { this.bottomAppBar.IsOpen = false; var trips = new Flyout(); trips.ShowFlyout(new ManageItem((ItemViewModel)e.ClickedItem)); } }
private void btnAdd_Click(object sender, Windows.UI.Xaml.RoutedEventArgs e) { this.bottomAppBar.IsOpen = false; var trips = new Flyout(); trips.ShowFlyout(new ManageItem()); }
private void btnEdit_Click(object sender, Windows.UI.Xaml.RoutedEventArgs e) { this.bottomAppBar.IsOpen = false; var trips = new Flyout(); trips.ShowFlyout(new ManageTrip(MainViewModel.GetSelectedTrip())); }
async void OnSettingsCommand(IUICommand command) { SettingsCommand settingsCommand = (SettingsCommand)command; switch(command.Id.ToString()) { case "about": var about = new Flyout(); about.ShowFlyout(new About()); break; case "privacyPolicy": await Launcher.LaunchUriAsync(new Uri("http://sugges.me/privacy.aspx")); break; } }