Show / Hide Table of Contents

Method Bind

| Improve this Doc View Source

Bind(ICommand, ExecutedRoutedEventHandler, CanExecuteRoutedEventHandler)

Binds command with command implementation.

Declaration
public static CommandEntry Bind(this ICommand command, ExecutedRoutedEventHandler executed, CanExecuteRoutedEventHandler canExecute = null)
Parameters
Type Name Description
System.Windows.Input.ICommand command

The command.

System.Windows.Input.ExecutedRoutedEventHandler executed

The command Executed handler.

System.Windows.Input.CanExecuteRoutedEventHandler canExecute

The command CanExecute handler.

Returns
Type Description
CommandEntry

The command entry contains both command and command implementation.

| Improve this Doc View Source

Bind(ICommand, ExecutedRoutedEventHandler, InputGesture)

Binds command with command implementation.

Declaration
public static CommandEntry Bind(this ICommand command, ExecutedRoutedEventHandler executed, InputGesture inputGesture)
Parameters
Type Name Description
System.Windows.Input.ICommand command

The command.

System.Windows.Input.ExecutedRoutedEventHandler executed

The command Executed handler.

System.Windows.Input.InputGesture inputGesture

The input gesture.

Returns
Type Description
CommandEntry

The command entry contains both command and command implementation.

| Improve this Doc View Source

Bind(ICommand, ExecutedRoutedEventHandler, CanExecuteRoutedEventHandler, InputGesture)

Binds command with command implementation.

Declaration
public static CommandEntry Bind(this ICommand command, ExecutedRoutedEventHandler executed, CanExecuteRoutedEventHandler canExecute, InputGesture inputGesture)
Parameters
Type Name Description
System.Windows.Input.ICommand command

The command.

System.Windows.Input.ExecutedRoutedEventHandler executed

The command Executed handler.

System.Windows.Input.CanExecuteRoutedEventHandler canExecute

The command CanExecute handler.

System.Windows.Input.InputGesture inputGesture

The input gesture.

Returns
Type Description
CommandEntry

The command entry contains both command and command implementation.

| Improve this Doc View Source

Bind(ICommand, ExecutedRoutedEventHandler, InputGesture[])

Binds command with command implementation.

Declaration
public static CommandEntry Bind(this ICommand command, ExecutedRoutedEventHandler executed, params InputGesture[] inputGestures)
Parameters
Type Name Description
System.Windows.Input.ICommand command

The command.

System.Windows.Input.ExecutedRoutedEventHandler executed

The command Executed handler.

System.Windows.Input.InputGesture[] inputGestures

The input gestures.

Returns
Type Description
CommandEntry

The command entry contains both command and command implementation.

| Improve this Doc View Source

Bind(ICommand, ExecutedRoutedEventHandler, CanExecuteRoutedEventHandler, InputGesture[])

Binds command with command implementation.

Declaration
public static CommandEntry Bind(this ICommand command, ExecutedRoutedEventHandler executed, CanExecuteRoutedEventHandler canExecute, params InputGesture[] inputGestures)
Parameters
Type Name Description
System.Windows.Input.ICommand command

The command.

System.Windows.Input.ExecutedRoutedEventHandler executed

The command Executed handler.

System.Windows.Input.CanExecuteRoutedEventHandler canExecute

The command CanExecute handler.

System.Windows.Input.InputGesture[] inputGestures

The input gestures.

Returns
Type Description
CommandEntry

The command entry contains both command and command implementation.

| Improve this Doc View Source

Bind(ICommand, IReadOnlyList<InputGesture>, ExecutedRoutedEventHandler, CanExecuteRoutedEventHandler)

Binds command with command implementation.

Declaration
public static CommandEntry Bind(this ICommand command, IReadOnlyList<InputGesture> inputGestures, ExecutedRoutedEventHandler executed, CanExecuteRoutedEventHandler canExecute)
Parameters
Type Name Description
System.Windows.Input.ICommand command

The command.

System.Collections.Generic.IReadOnlyList<System.Windows.Input.InputGesture> inputGestures

The input gestures.

System.Windows.Input.ExecutedRoutedEventHandler executed

The command Executed handler.

System.Windows.Input.CanExecuteRoutedEventHandler canExecute

The command CanExecute handler.

Returns
Type Description
CommandEntry

The command entry contains both command and command implementation.

| Improve this Doc View Source

Bind(ICommand, InputGesture)

Binds command with command implementation.

Declaration
public static CommandEntry Bind(this ICommand command, InputGesture inputGesture)
Parameters
Type Name Description
System.Windows.Input.ICommand command

The command.

System.Windows.Input.InputGesture inputGesture

The input gesture.

Returns
Type Description
CommandEntry

The command entry contains both command and command implementation.

| Improve this Doc View Source

Bind(ICommand, InputGesture[])

Binds command with command implementation.

Declaration
public static CommandEntry Bind(this ICommand command, params InputGesture[] inputGestures)
Parameters
Type Name Description
System.Windows.Input.ICommand command

The command.

System.Windows.Input.InputGesture[] inputGestures

The input gestures.

Returns
Type Description
CommandEntry

The command entry contains both command and command implementation.

  • Improve this Doc
  • View Source
Back to top Copyright © Weifen Luo | DevZest