This documentation is archived and is not being maintained.

InputBinding.CommandParameter Property

Gets or sets the command specific data.

Namespace: System.Windows.Input
Assembly: PresentationCore (in presentationcore.dll)
XML Namespace:

Public Property CommandParameter As Object
Dim instance As InputBinding
Dim value As Object

value = instance.CommandParameter

instance.CommandParameter = value
/** @property */
public final Object get_CommandParameter ()

/** @property */
public void set_CommandParameter (Object value)

public final function get CommandParameter () : Object

public function set CommandParameter (value : Object)

You cannot use this property in XAML.

Property Value

The command-specific data. The default value is a null reference (Nothing in Visual Basic).

Normally, this property is used to pass specific information to the command when it is executed. The type of the data is defined by the command.

In the case of a RoutedCommand, the CommandParameter is passed through the ExecutedRoutedEventArgs and the CanExecuteRoutedEventArgs to the command handlers.

This data is user-defined and can be a null reference (Nothing in Visual Basic).

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0