Ribbon element
Applies to: desktop apps only
Represents the ribbon control in the Ribbon View.
Usage
<Ribbon Name = "xs:string" GroupSpacing = "xs:string"> child elements </Ribbon>
Attributes
| Attribute | Type | Required | Description |
|---|---|---|---|
|
GroupSpacing |
xs:string |
No | |
|
Name |
xs:string |
No |
Used to annotate the command element. |
Child elements
| Element | Description |
|---|---|
|
May occur at most once | |
|
May occur at most once | |
|
May occur at most once | |
|
May occur at most once | |
|
May occur at most once | |
|
May occur at most once |
Parent elements
| Element |
|---|
Remarks
Required.
Must occur exactly once for each Application.Views element.
Examples
The following example demonstrates the basic markup for a Ribbon View.
<Ribbon Name="ScenicRibbonSampleApp"> <Ribbon.QuickAccessToolbar> ... </Ribbon.QuickAccessToolbar> <Ribbon.ApplicationMenu> ... </Ribbon.ApplicationMenu> <Ribbon.SizeDefinitions> ... </Ribbon.SizeDefinitions> <Ribbon.Tabs> ... </Ribbon.Tabs> <Ribbon.ContextualTabs> ... </Ribbon.ContextualTabs> <Ribbon.HelpButton> ... </Ribbon.HelpButton> </Ribbon>
Element information
|
Minimum supported system | Windows 7 |
|---|---|
| Can be empty | No |
Send comments about this topic to Microsoft
Build date: 2/15/2012