IUICommand IUICommand IUICommand IUICommand Interface

Definition

Represents a command in a context menu or message dialog box.

public : interface IUICommand
public interface IUICommand
Public Interface IUICommand
// You can't instantiate an interface directly in JavaScript. You can use objects that implement the interface, however.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Properties

Id Id Id Id

Gets or sets the identifier of the command.

public : Platform::Object Id { get; set; }
public object Id { get; set; }
Public ReadWrite Property Id As object
var object = iuiCommand.id;
iuiCommand.id = object;
Value
Platform::Object object object object

Represents the identifier of the command.

Remarks

If you assign a unique identifier to each command, you can implement a single UICommandInvokedHandler method that handles events from multiple commands.

See Also

Invoked Invoked Invoked Invoked

Gets or sets the handler for the event that is fired when the user invokes the command.

public : UICommandInvokedHandler Invoked { get; set; }
public UICommandInvokedHandler Invoked { get; set; }
Public ReadWrite Property Invoked As UICommandInvokedHandler
var uiCommandInvokedHandler = iuiCommand.invoked;
iuiCommand.invoked = uiCommandInvokedHandler;
See Also

Label Label Label Label

Gets or sets the label for the command.

public : Platform::String Label { get; set; }
public string Label { get; set; }
Public ReadWrite Property Label As string
var string = iuiCommand.label;
iuiCommand.label = string;
Value
Platform::String string string string

The label for the command.

See Also

See Also