CommandParameter Property

MenuItem.CommandParameter Property

 

Gets or sets the parameter to pass to the Command property of a MenuItem.

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

[BindableAttribute(true)]
[LocalizabilityAttribute(LocalizationCategory.NeverLocalize)]
public object CommandParameter { get; set; }

Property Value

Type: System.Object

The parameter to pass to the Command property of a MenuItem. The default is null.

Identifier field

CommandParameterProperty

Metadata properties set to true

None

.NET Framework
Available since 3.0
Return to top
Show:
© 2016 Microsoft