Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Stellt eine benutzerdefinierte Layoutvorlage von Menüband-Steuerelementen dar.
Verwendung
<SizeDefinition
Name = "xs:positiveInteger or xs:string or xs:token">
child elements
</SizeDefinition>
Attribute
| attribute | Typ | Erforderlich | BESCHREIBUNG |
|---|---|---|---|
|
Name |
xs:positiveInteger oder xs:string oder xs:token |
Ja |
Wenn Ribbon.SizeDefinitions das übergeordnete Element ist, andernfalls optional. Der Wert muss innerhalb des XML-Dokuments des Menübands eindeutig sein. Maximale Länge: 100 Zeichen. |
Untergeordnete Elemente
| Element | BESCHREIBUNG |
|---|---|
|
ControlNameMap |
Kann höchstens einmal auftreten |
|
GroupSizeDefinition |
Muss mindestens einmal auftreten. |
Übergeordnete Elemente
| Element |
|---|
|
Gruppe |
|
Ribbon.SizeDefinitions |
Bemerkungen
Optional.
Kann höchstens einmal für jedes Group-Element auftreten.
Kann für jedes Ribbon.SizeDefinitions-Element ein oder mehrere Male auftreten.
Vordefinierte Menüband-Frameworklayoutvorlagen werden mit dem SizeDefinition-Attribut des Group-Elements angegeben.
Wenn nicht für jedes Group-Element in einem Tab-Element ein entsprechendes ScalingPolicy.IdealSizes-Element deklariert wird, tritt ein Validierungsfehler auf.
Beispiele
Das folgende Codebeispiel veranschaulicht eine einfache benutzerdefinierte Vorlage.
<Group CommandName="cmdButtonGroup2">
<SizeDefinition>
<ControlNameMap>
<ControlNameDefinition Name="button1"/>
<ControlNameDefinition Name="button2"/>
<ControlNameDefinition Name="button3"/>
<ControlNameDefinition Name="button4"/>
</ControlNameMap>
<GroupSizeDefinition Size="Large">
<ControlGroup>
<ControlSizeDefinition ControlName="button1"
ImageSize="Large"
IsLabelVisible="true" />
<ControlSizeDefinition ControlName="button2"
ImageSize="Large"
IsLabelVisible="true" />
</ControlGroup>
<ColumnBreak ShowSeparator="true"/>
<ControlGroup>
<ControlSizeDefinition ControlName="button3"
ImageSize="Large"
IsLabelVisible="true" />
<ControlSizeDefinition ControlName="button4"
ImageSize="Large"
IsLabelVisible="true" />
</ControlGroup>
</GroupSizeDefinition>
<GroupSizeDefinition Size="Medium">
<Row>
<ControlSizeDefinition ControlName="button1"
ImageSize="Small"
IsLabelVisible="true" />
<ControlSizeDefinition ControlName="button3"
ImageSize="Small"
IsLabelVisible="true" />
</Row>
<Row>
<ControlSizeDefinition ControlName="button2"
ImageSize="Small"
IsLabelVisible="true" />
<ControlSizeDefinition ControlName="button4"
ImageSize="Small"
IsLabelVisible="true" />
</Row>
</GroupSizeDefinition>
<GroupSizeDefinition Size="Small">
<Row>
<ControlSizeDefinition ControlName="button1"
ImageSize="Small"
IsLabelVisible="true" />
<ControlSizeDefinition ControlName="button3"
ImageSize="Small"
IsLabelVisible="false" />
</Row>
<Row>
<ControlSizeDefinition ControlName="button2"
ImageSize="Small"
IsLabelVisible="true" />
<ControlSizeDefinition ControlName="button4"
ImageSize="Small"
IsLabelVisible="false" />
</Row>
</GroupSizeDefinition>
</SizeDefinition>
<Button CommandName="cmdButtonG21"></Button>
<Button CommandName="cmdButtonG22"></Button>
<Button CommandName="cmdButtonG23"></Button>
<Button CommandName="cmdButtonG24"></Button>
</Group>
<Group CommandName="cmdCheckBoxGroup">
<CheckBox CommandName="cmdCheckBox"></CheckBox>
</Group>
<Group CommandName="cmdToggleButtonGroup"
SizeDefinition="OneButton">
<ToggleButton CommandName="cmdToggleButton"></ToggleButton>
</Group>
<Group CommandName="cmdButtonGroup"
SizeDefinition="ThreeButtons">
<Button CommandName="cmdButton1"></Button>
<Button CommandName="cmdButton2"></Button>
<Button CommandName="cmdButton3"></Button>
</Group>
Elementinformationen
- Unterstützte Mindestsystem: Windows 7
- Kann leer sein: Nein