Ανάγνωση στα Αγγλικά

Κοινή χρήση μέσω


DispatchedDelegateCommand 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++
public ref class DispatchedDelegateCommand : Microsoft::VisualStudio::PlatformUI::DispatchedDelegateCommand<System::Object ^>
Inheritance

Constructors

Methods

CanExecute(Object) (Inherited from DispatchedDelegateCommand<T>)
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) (Inherited from DispatchedDelegateCommand<T>)
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

Προϊόν Εκδόσεις
Visual Studio SDK 2019, 2022