private void CanExecuteCustomCommand(object sender, CanExecuteRoutedEventArgs e) { e.CanExecute = canEx; }