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(); }
private async void AppBarButton_Tapped(object sender, TappedRoutedEventArgs e) { RegistrationViewModel.Registration = new Registration(); RegistrationContentDialog pd = new RegistrationContentDialog(RegistrationViewModel); ContentDialogResult cdr = await pd.ShowAsync(); }