コード例 #1
0
 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));
     }
 }
コード例 #2
0
 private void btnAdd_Click(object sender, Windows.UI.Xaml.RoutedEventArgs e)
 {
     this.bottomAppBar.IsOpen = false;
     var trips = new Flyout();
     trips.ShowFlyout(new ManageItem());
 }
コード例 #3
0
 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()));
 }
コード例 #4
0
ファイル: App.xaml.cs プロジェクト: soreygarcia/Sugges.me
 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;
     }
 }