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.
| Constructor | Description |
|---|---|
| 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.
| Property | Access type | Description |
|---|---|---|
| Read/write | Gets or sets the identifier of the command separator. | |
| Read/write | Gets or sets the handler for the event that is fired for the command separator. | |
| Read/write | Gets 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 |
|
|
Metadata |
|
See also
- Adding context menus
- Context menu sample
- Guidelines and checklist for context menus
- Reference
- PopupMenu.Commands
- UICommand
Build date: 2/25/2013
