0 out of 1 rated this helpful - Rate this topic

UICommandSeparator class

Represents a command separator in a context menu.

Syntax


var uiCommandSeparator = new Windows.UI.Popups.UICommandSeparator();

Attributes

ActivatableAttribute(NTDDI_WIN8)
MarshalingBehaviorAttribute(Agile)
MuseAttribute()
ThreadingAttribute(Both)
VersionAttribute(NTDDI_WIN8)

Members

The UICommandSeparator class has these types of members:

Constructors

The UICommandSeparator class has these constructors.

ConstructorDescription
UICommandSeparator Creates a new instance of the UICommandSeparator class.

 

Methods

The UICommandSeparator class inherits methods from the Object class (C#/VB/C++).

Properties

The UICommandSeparator class has these properties.

PropertyAccess typeDescription

Id

Read/writeGets or sets the identifier of the command separator.

Invoked

Read/writeGets or sets the handler for the event that is fired for the command separator.

Label

Read/writeGets or sets the label for the command separator.

 

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.

Requirements

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Namespace

Windows.UI.Popups
Windows::UI::Popups [C++]

Metadata

Windows.winmd

See also

Adding context menus
Context menu sample
Guidelines and checklist for context menus
Reference
PopupMenu.Commands
UICommand

 

 

Build date: 2/25/2013

© 2013 Microsoft. All rights reserved.