UICommandSeparator UICommandSeparator UICommandSeparator UICommandSeparator UICommandSeparator Class

Definition

Represents a command separator in a context menu.

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

Remarks

You can use a command separator to create a visual separation between groups of items in a context menu.

Setting properties on a UICommandSeparator object has no effect.

Constructors

UICommandSeparator() UICommandSeparator() UICommandSeparator() UICommandSeparator() UICommandSeparator()

Creates a new instance of the UICommandSeparator class.

public : UICommandSeparator()
UICommandSeparator() const;
public UICommandSeparator()
Public Sub New()
var uiCommandSeparator = new uiCommandSeparator();
See Also

Properties

Id Id Id Id Id

Gets or sets the identifier of the command separator.

public : Platform::Object Id { get; set; }
winrt::Windows::Foundation::IInspectable Id(); void Id(winrt::Windows::Foundation::IInspectable id);
public object Id { get; set; }
Public ReadWrite Property Id As object
var object = uiCommandSeparator.id;
uiCommandSeparator.id = object;
Value
object object object

The identifier of the command separator.

Remarks

Setting this property has no effect.

Invoked Invoked Invoked Invoked Invoked

Gets or sets the handler for the event that is fired for the command separator.

public : UICommandInvokedHandler Invoked { get; set; }
UICommandInvokedHandler Invoked(); void Invoked(UICommandInvokedHandler invoked);
public UICommandInvokedHandler Invoked { get; set; }
Public ReadWrite Property Invoked As UICommandInvokedHandler
var uiCommandInvokedHandler = uiCommandSeparator.invoked;
uiCommandSeparator.invoked = uiCommandInvokedHandler;
Value
UICommandInvokedHandler UICommandInvokedHandler UICommandInvokedHandler

The event handler for the command separator.

Remarks

Setting this property has no effect.

Label Label Label Label Label

Gets or sets the label for the command separator.

public : Platform::String Label { get; set; }
winrt::hstring Label(); void Label(winrt::hstring label);
public string Label { get; set; }
Public ReadWrite Property Label As string
var string = uiCommandSeparator.label;
uiCommandSeparator.label = string;
Value
string string string

The label for the command separator.

Remarks

Setting this property has no effect.

See Also