Share via


ButtonBase.CommandParameter Property

Definition

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

public object CommandParameter { get; set; }
<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