コード例 #1
0
        private async void Edit_Click(object sender, RoutedEventArgs e)
        {
            FrameworkElement senderElement = sender as FrameworkElement;
            Registration     registration  = senderElement.DataContext as Registration;

            RegistrationViewModel.Registration = registration;
            RegistrationContentDialog pd  = new RegistrationContentDialog(RegistrationViewModel);
            ContentDialogResult       cdr = await pd.ShowAsync();
        }
コード例 #2
0
 private async void AppBarButton_Tapped(object sender, TappedRoutedEventArgs e)
 {
     RegistrationViewModel.Registration = new Registration();
     RegistrationContentDialog pd  = new RegistrationContentDialog(RegistrationViewModel);
     ContentDialogResult       cdr = await pd.ShowAsync();
 }