Пример #1
0
 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;
     }
 }
Пример #2
0
 private void btnAdd_Click(object sender, Windows.UI.Xaml.RoutedEventArgs e)
 {
     this.bottomAppBar.IsOpen = false;
     var trips = new SettingsFlyout();
     trips.ShowFlyout(new ManageTrip());
 }
Пример #3
0
 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));
     }
 }