Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:
© 2017 Microsoft