Share via


RibbonControlService.DefaultControlSizeDefinition Attached Property

Gets or sets the default RibbonControlSizeDefinition for this control.

Namespace:  Microsoft.Windows.Controls.Ribbon
Assembly:  RibbonControlsLibrary (in RibbonControlsLibrary.dll)

Syntax

'Declaration
See GetDefaultControlSizeDefinition, SetDefaultControlSizeDefinition
See GetDefaultControlSizeDefinition, SetDefaultControlSizeDefinition
See GetDefaultControlSizeDefinition, SetDefaultControlSizeDefinition
See GetDefaultControlSizeDefinition, SetDefaultControlSizeDefinition
See GetDefaultControlSizeDefinition, SetDefaultControlSizeDefinition

Property Value

Type: Microsoft.Windows.Controls.Ribbon.RibbonControlSizeDefinition
The default RibbonControlSizeDefinition for this control. The registered default is nulla null reference (Nothing in Visual Basic). For more information about what can influence the value, see Dependency Property Value Precedence.

Dependency Property Information

Identifier field

DefaultControlSizeDefinitionProperty

Metadata properties set to true

None

Remarks

A RibbonControlSizeDefinition contains properties that specify size and visibility information for the image and label associated with a control. If the ControlSizeDefinition property is not set for a ribbon control, the DefaultControlSizeDefinition property is used instead. The default control size definition is based on the control’s property settings. If a LargeImageSource is specified, it is the default. If LargeImageSource is nulla null reference (Nothing in Visual Basic), and a SmallImageSource is specified, the SmallImageSource is the default. If both the LargeImageSource and SmallImageSource are nulla null reference (Nothing in Visual Basic), the image is set to Collapsed by default. If the Label property is null or empty, it is hidden by default.

.NET Framework Security

See Also

Reference

RibbonControlService Class

Microsoft.Windows.Controls.Ribbon Namespace

Other Resources

Ribbon Layout and Resizing