ClassRoutedCommand
Defines a command that implements ICommand and is routed through the element tree.
Definition
Namespace:Telerik.UI.Xaml.Controls
Assembly:Telerik.WinUI.Controls.dll
Syntax:
[TypeConverter(typeof(CommandConverter))]
public class RoutedCommand : ICommand
Inheritance: objectRoutedCommand
Derived Classes:
Implements:
Constructors
RoutedCommand()
Initializes a new instance of the RoutedCommand class.
Declaration
protected RoutedCommand()
RoutedCommand(string, Type)
Initializes a new instance of the RoutedCommand class.
RoutedCommand(string, Type, InputGestureCollection)
Initializes a new instance of the RoutedCommand class.
Declaration
public RoutedCommand(string name, Type ownerType, InputGestureCollection inputGestures)
Parameters
name
The name.
ownerType
Type of the owner.
inputGestures
The input gestures.
Properties
InputGestures
Gets the collection of InputGesture objects that are associated with this command.
Declaration
public InputGestureCollection InputGestures { get; }
Property Value
The input gestures.
Name
Gets the name of the command.
Methods
CanExecute(object, UIElement)
Determines whether this instance can execute the specified parameter.
Execute(object, UIElement)
Executes the RoutedCommand on the current command target.
Declaration
public void Execute(object parameter, UIElement target)
Parameters
parameter
The parameter.
target
UIElement
The target.
Events
CanExecuteChanged
Occurs when changes occur that affect whether the command should execute.
Declaration
public event EventHandler CanExecuteChanged
Event Value
Implements