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