System.Windows.Input.ICommand

Defines a command.

See Also: ICommand

Syntax

[System.Runtime.CompilerServices.TypeForwardedFrom("PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35")]
public interface ICommand

Remarks

RoutedCommand and RoutedUICommand are two implementations of the ICommand interface in TLA#tla_winclient.

XAML Text Usage

<object property="predefinedCommandName"/>

- or -

<object property="predefinedCommandName.predefinedCommandName"/>

- or -

<object property="{x:Static customClassName.customCommandName}"/>

XAML Values

predefinedClassName

One of the predefined command classes.

predefinedCommandName

One of the predefined commands.

customClassName

A custom class that contains the custom command. Custom classes generally require an xlmns prefix mapping; see XAML Namespaces and Namespace Mapping.

customCommandName

A custom command.

Requirements

Namespace: System.Windows.Input
Assembly: System (in System.dll)
Assembly Versions: 4.0.0.0

The members of System.Windows.Input.ICommand are listed below.

Public Methods

CanExecute(Object) : Boolean

Defines the method that determines whether the command can execute in its current state.

Execute(Object)

Defines the method to be called when the command is invoked.

Public Events

CanExecuteChanged

Occurs when changes occur that affect whether or not the command should execute.