private void EditButton_Click(object sender, RoutedEventArgs e) { // Set selected item _viewModel.Entity = (User)((Button)sender).Tag; // Go into Edit mode _viewModel.BeginEdit(false); }
private void AddButton_Click(object sender, RoutedEventArgs e) { _viewModel.BeginEdit(true); }