DelegateCommand
Class
Provides a simple ICommand implementation.
Definition
Namespace:Telerik.WinControls.RichTextEditor.UI.Commands
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
C#
public class DelegateCommand : ICommand
Inheritance: objectDelegateCommand
Implements:
Constructors
Initializes a new instance of the DelegateCommand class.
Initializes a new instance of the DelegateCommand class.
Methods
Defines the method that determines whether the command can execute in its current state.
Defines the method to be called when the command is invoked.
C#
public void Execute(object parameter)
Data used by the command. If the command does not require data to be passed, this object can be set to null.
Implements:
Raises the CanExecuteChanged event.
C#
public void InvalidateCanExecute()
Events
Occurs when changes occur that affect whether the command should execute.
C#
public event EventHandler CanExecuteChanged
Implements: