コード例 #1
0
 void Close_Executed(object sender, ExecutedRoutedEventArgs e)
 {
     if (CloseVMCommand != null && CloseVMCommand.CanExecute(null))
     {
         CloseVMCommand.Execute(null);
     }
 }
コード例 #2
0
 private void Close_CanExecute(object sender, CanExecuteRoutedEventArgs e)
 {
     e.CanExecute = CloseVMCommand != null && CloseVMCommand.CanExecute(null);
 }