MenuFlyoutItem.CommandParameter property

Applies to Windows and Windows Phone

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

Syntax


public object CommandParameter { get; set; }


<MenuFlyoutItem>
  <MenuFlyoutItem.CommandParameter>
    object
  </MenuFlyoutItem.CommandParameter>
</MenuFlyoutItem>


<MenuFlyoutItem CommandParameter="objectAsString"/>

Property value

Type: System.Object [.NET] | Platform::Object [C++]

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

Requirements

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml.Controls
Windows::UI::Xaml::Controls [C++]

Metadata

Windows.winmd

See also

MenuFlyoutItem

 

 

Show:
© 2014 Microsoft