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