DispatchedDelegateCommand<T> Class

Definition

Implementation of ICommand using delegates, where 'execute' delegate will be dispatched to the end of the current dispatcher queue with the given priority, allowing UI to refresh 'can execute' state

C++
generic <typename T>
public ref class DispatchedDelegateCommand : Microsoft::VisualStudio::PlatformUI::DelegateCommand<T>

Type Parameters

T
Inheritance
DispatchedDelegateCommand<T>
Derived

Constructors

Methods

CanExecute(Object)
CanExecuteDependsOn(INotifyPropertyChanged, String)

Adds a property upon which this command's CanExecute state depends. When the property changes, this command will raise CanExecuteChanged

(Inherited from DelegateCommandBase)
Execute(Object)
RaiseCanExecuteChanged()

Raises the CanExecuteChanged event.

(Inherited from DelegateCommandBase)

Events

CanExecuteChanged

An event that is fired when the executable state of this command changes. Call RaiseCanExecuteChanged to force listeners to update.

(Inherited from DelegateCommandBase)

Applies to

Produto Versões
Visual Studio SDK 2019, 2022