Aracılığıyla paylaş


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.

public ref class DispatchedDelegateCommand : Microsoft::VisualStudio::PlatformUI::DispatchedDelegateCommand<System::Object ^>
public class DispatchedDelegateCommand : Microsoft.VisualStudio.PlatformUI.DispatchedDelegateCommand<object>
type DispatchedDelegateCommand = class
    inherit DispatchedDelegateCommand<obj>
Public Class DispatchedDelegateCommand
Inherits DispatchedDelegateCommand(Of Object)
Inheritance

Constructors

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

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