Freigeben über


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

generic <typename T>
public ref class DispatchedDelegateCommand : Microsoft::VisualStudio::PlatformUI::DelegateCommand<T>
public class DispatchedDelegateCommand<T> : Microsoft.VisualStudio.PlatformUI.DelegateCommand<T>
type DispatchedDelegateCommand<'T> = class
    inherit DelegateCommand<'T>
Public Class DispatchedDelegateCommand(Of T)
Inherits DelegateCommand(Of T)

Type Parameters

T
Inheritance
DispatchedDelegateCommand<T>
Derived

Constructors

DispatchedDelegateCommand<T>(Action<T>, DispatcherPriority)
DispatchedDelegateCommand<T>(Action<T>, Predicate<T>, DispatcherPriority)

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