Share via


RibbonControlSizeDefinition.MaxWidth Property

Gets or sets the maximum width constraint of a container control in a Ribbon.

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

Syntax

'Declaration
Public Property MaxWidth As RibbonControlLength
public RibbonControlLength MaxWidth { get; set; }
public:
property RibbonControlLength MaxWidth {
    RibbonControlLength get ();
    void set (RibbonControlLength value);
}
member MaxWidth : RibbonControlLength with get, set
function get MaxWidth () : RibbonControlLength
function set MaxWidth (value : RibbonControlLength)

Property Value

Type: Microsoft.Windows.Controls.Ribbon.RibbonControlLength
The maximum width of the control. The registered default is Double.PositiveInfinity. For more information about what can influence the value, see Dependency Property Value Precedence.

Dependency Property Information

Identifier field

MaxWidthProperty

Metadata properties set to true

None

Remarks

This property only has an effect if the control is a container for other objects.

.NET Framework Security

See Also

Reference

RibbonControlSizeDefinition Class

Microsoft.Windows.Controls.Ribbon Namespace

Other Resources

Ribbon Layout and Resizing