Windows Dev Center

Spinner element

Represents a Spinner control.

Usage

<Spinner
  CommandName = "xs:positiveInteger or xs:string"/>

Attributes

AttributeTypeRequiredDescription

CommandName

xs:positiveInteger or xs:string

No

Associates the element with a Command.

(xs:positiveInteger or xs:string)

A string, an integer value between 2 and 59999, inclusive, or a hexadecimal value between 0x2 and 0xea5f, inclusive.

The value must be unique within the Ribbon XML document.

Maximum length: 100 characters.

Child elements

There are no child elements.

Parent elements

Element

ControlGroup

DropDownGallery

Group

MenuGroup

SplitButtonGallery

Remarks

Optional.

May occur one or more times for each ControlGroup or Group element.

Examples

The following example demonstrates the basic markup for the Spinner.

This section of code shows the Spinner Command declarations, with a Group element that functions as the parent container for the Spinner element.


<Command Name="GroupSpinner1" Symbol="IDR_CMD_GROUPSPINNER1" Id="30010">
  <Command.LabelTitle>
    <String Id="210">Resize</String>
  </Command.LabelTitle>
</Command>
<Command Name="Spinner_Size" Symbol="IDR_CMD_SPINNER_RESIZE" Id="30015">
  <Command.LabelTitle>
    <String Id="215">Resize by:</String>
  </Command.LabelTitle>
</Command>


This section of code shows the Spinner control declarations.


<Group CommandName="GroupSpinner1">
  <Spinner CommandName="Spinner_Size" />
</Group>


Element information

Minimum supported system

Windows 7
Can be emptyYes

See also

Spinner control

 

 

Community Additions

ADD
Show:
© 2015 Microsoft