///<summary>
 /// Invokes the <see cref="CanExecuteChanged"/> event.
 ///</summary>
 public void OnCanExecuteChanged()
 {
     WeakEventHandlerManager.CallWeakReferenceHandlers(this, _canExecuteChangedHandlers);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Raises <see cref="ICommand.CanExecuteChanged"/> on the UI thread so every
 /// command invoker can requery <see cref="ICommand.CanExecute"/> to check if the
 /// <see cref="CompositeCommand"/> can execute.
 /// </summary>
 protected virtual void OnCanExecuteChanged()
 {
     WeakEventHandlerManager.CallWeakReferenceHandlers(this, _canExecuteChangedHandlers);
 }
Exemplo n.º 3
0
 protected virtual void OnCanExecuteChanged()
 {
     CommandManager.InvalidateRequerySuggested();
     WeakEventHandlerManager.CallWeakReferenceHandlers(this, _canExecuteChangedHandlers);
 }