Show / Hide Table of Contents

Class CommandBinding

Implements binding between routed command and event handler

Inheritance
System.Object
CommandBinding
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: EmptyKeys.UserInterface.Input
Assembly: EmptyKeys.UserInterface.dll
Syntax
public class CommandBinding

Constructors

CommandBinding()

Initializes a new instance of the CommandBinding class.

Declaration
public CommandBinding()

CommandBinding(ICommand, ExecutedRoutedEventHandler, CanExecuteRoutedEventHandler)

Initializes a new instance of the CommandBinding class.

Declaration
public CommandBinding(ICommand command, ExecutedRoutedEventHandler executedHandler, CanExecuteRoutedEventHandler canExecuteHandler)
Parameters
Type Name Description
ICommand command

The command.

ExecutedRoutedEventHandler executedHandler

The executed handler.

CanExecuteRoutedEventHandler canExecuteHandler

The can execute handler.

Properties

Command

Gets or sets the command.

Declaration
public ICommand Command { get; set; }
Property Value
Type Description
ICommand

The command.

Events

CanExecute

Occurs when [can execute].

Declaration
public event CanExecuteRoutedEventHandler CanExecute
Event Type
Type Description
CanExecuteRoutedEventHandler

Executed

Occurs when [executed].

Declaration
public event ExecutedRoutedEventHandler Executed
Event Type
Type Description
ExecutedRoutedEventHandler

PreviewCanExecute

Occurs when [preview can execute].

Declaration
public event CanExecuteRoutedEventHandler PreviewCanExecute
Event Type
Type Description
CanExecuteRoutedEventHandler

PreviewExecuted

Occurs when [preview executed].

Declaration
public event ExecutedRoutedEventHandler PreviewExecuted
Event Type
Type Description
ExecutedRoutedEventHandler
Back to top Generated by DocFX