Exemplo n.º 1
0
 private void Save_CanExecute(object sender, CanExecuteRoutedEventArgs e)
 {
     e.CanExecute = ControlRoles.GetState(Model?.EditCommand) && Model?.Items.HasChanges == true;
 }
Exemplo n.º 2
0
 private void Add_CanExecute(object sender, CanExecuteRoutedEventArgs e)
 {
     e.CanExecute = ControlRoles.GetState(Model?.EditCommand);
 }
Exemplo n.º 3
0
 private void Delete_CanExecute(object sender, CanExecuteRoutedEventArgs e)
 {
     e.CanExecute = ControlRoles.GetState(Model?.EditCommand) && Model?.CurrentItem != null;
 }