UICommand UICommand UICommand UICommand UICommand Class

Definition

Represents a command in a context menu.

public : sealed class UICommand : IUICommand
struct winrt::Windows::UI::Popups::UICommand : IUICommand
public sealed class UICommand : IUICommand
Public NotInheritable Class UICommand Implements IUICommand
var uiCommand = new uiCommand();
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

Use the PopupMenu.Commands property to add or modify the commands in a context menu.

Constructors

UICommand() UICommand() UICommand() UICommand() UICommand()

Creates a new instance of the UICommand class.

UICommand(String) UICommand(String) UICommand(String) UICommand(String) UICommand(String)

Creates a new instance of the UICommand class using the specified label.

UICommand(String, UICommandInvokedHandler) UICommand(String, UICommandInvokedHandler) UICommand(String, UICommandInvokedHandler) UICommand(String, UICommandInvokedHandler) UICommand(String, UICommandInvokedHandler)

Creates a new instance of the UICommand class using the specified label and event handler.

UICommand(String, UICommandInvokedHandler, Object) UICommand(String, UICommandInvokedHandler, Object) UICommand(String, UICommandInvokedHandler, Object) UICommand(String, UICommandInvokedHandler, Object) UICommand(String, UICommandInvokedHandler, Object)

Creates a new instance of the UICommand class using the specified label, event handler, and command identifier.

Properties

Id Id Id Id Id

Gets or sets the identifier of the command.

Invoked Invoked Invoked Invoked Invoked

Gets or sets the handler for the event that is fired when the user selects the UICommand.

Label Label Label Label Label

Gets or sets the label for the command.

See Also