DelegateCommand<T> Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Implementation of ICommand where the Execute and CanExecute callbacks are handled by delegates.
generic <typename T>
public ref class DelegateCommand : Microsoft::VisualStudio::PlatformUI::DelegateCommandBase, System::Windows::Input::ICommand
public class DelegateCommand<T> : Microsoft.VisualStudio.PlatformUI.DelegateCommandBase, System.Windows.Input.ICommand
type DelegateCommand<'T> = class
inherit DelegateCommandBase
interface ICommand
Public Class DelegateCommand(Of T)
Inherits DelegateCommandBase
Implements ICommand
- T
The parameter type for the Execute and CanExecute delegates
- Inheritance
- Derived
- Implements
Delegate |
Initializes a new instance of the DelegateCommand<T> class. Using this constructor to initialize the DelegateCommand results in a command that can always execute. |
Delegate |
Initializes a new instance of the DelegateCommand<T> class. |
Delegate |
Initializes a new instance of the DelegateCommand<T> class. |
Delegate |
Initializes a new instance of the DelegateCommand<T> class. Using this constructor to initialize the DelegateCommand results in a command that can always execute. |
Can |
Gets a value indicating whether this command is executable. |
Can |
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) |
Executes the command. |
Raise |
Raises the CanExecuteChanged event. (Inherited from DelegateCommandBase) |
Can |
An event that is fired when the executable state of this command changes. Call RaiseCanExecuteChanged to force listeners to update. (Inherited from DelegateCommandBase) |