ButtonBase.CommandParameter Property

Definition

Gets or sets the parameter to pass to the Command property.

C#
public object CommandParameter { get; set; }
XAML
<button>
  <button.CommandParameter>
    object
  </button.CommandParameter>
</button>
- or -
<button CommandParameter="objectAsString"/>

Property Value

Object

The parameter to pass to the Command property. The default is null.

Applies to

Product Versions
Windows App SDK 0.8, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6