Ejemplo n.º 1
0
 private void Selector_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     _CanExecute = true;
     if (canExecuteHandler != null)
     {
         var arg = new ItemCanExecuteEventArgs(Selector.SelectedItem);
         arg.Owner = Owner;
         canExecuteHandler(Selector, arg);
         if (arg.Cancel)
             _CanExecute = false;
     }
     CanExecuteChanged(this, null);
 }
Ejemplo n.º 2
0
 private void Selector_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     _CanExecute = true;
     if (canExecuteHandler != null)
     {
         var arg = new ItemCanExecuteEventArgs(Selector.SelectedItem);
         arg.Owner = Owner;
         canExecuteHandler(Selector, arg);
         if (arg.Cancel)
         {
             _CanExecute = false;
         }
     }
     CanExecuteChanged(this, null);
 }