UICommandSeparator UICommandSeparator UICommandSeparator UICommandSeparator Class

Represents a command separator in a context menu.

Syntax

Declaration

public sealed class UICommandSeparatorpublic sealed class UICommandSeparatorPublic NotInheritable Class UICommandSeparatorpublic sealed class UICommandSeparator

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 summary

Creates a new instance of the UICommandSeparator class.

Properties summary

Gets or sets the identifier of the command separator.

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

Gets or sets the label for the command separator.

Constructors

  • UICommandSeparator()
    UICommandSeparator()
    UICommandSeparator()
    UICommandSeparator()

    Creates a new instance of the UICommandSeparator class.

    public UICommandSeparator()public New()Public Sub New()public UICommandSeparator()

Properties

  • Id
    Id
    Id
    Id

    Gets or sets the identifier of the command separator.

    public object Id { get; set; }public object Id { get; set; }Public ReadWrite Property Id As objectpublic object Id { get; set; }

    Property Value

    • object
      object
      object
      object

      The identifier of the command separator.

    Remarks

    Setting this property has no effect.

  • Invoked
    Invoked
    Invoked
    Invoked

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

    public UICommandInvokedHandler Invoked { get; set; }public UICommandInvokedHandler Invoked { get; set; }Public ReadWrite Property Invoked As UICommandInvokedHandlerpublic UICommandInvokedHandler Invoked { get; set; }

    Property Value

    Remarks

    Setting this property has no effect.

  • Label
    Label
    Label
    Label

    Gets or sets the label for the command separator.

    public string Label { get; set; }public string Label { get; set; }Public ReadWrite Property Label As stringpublic string Label { get; set; }

    Property Value

    • string
      string
      string
      string

      The label for the command separator.

    Remarks

    Setting this property has no effect.

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.ActivatableAttribute
Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.MarshalingBehaviorAttribute
Windows.Foundation.Metadata.MuseAttribute
Windows.Foundation.Metadata.ThreadingAttribute

Details

Assembly

Windows.UI.Popups.dll