Dela via


RibbonGalleryCategory.ColumnsStretchToFill Property

Gets or sets a value that indicates that the gallery category distributes all its available width equally between its columns.

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

Syntax

'Declaration
Public Property ColumnsStretchToFill As Boolean
public bool ColumnsStretchToFill { get; set; }
public:
property bool ColumnsStretchToFill {
    bool get ();
    void set (bool value);
}
member ColumnsStretchToFill : bool with get, set
function get ColumnsStretchToFill () : boolean
function set ColumnsStretchToFill (value : boolean)

Property Value

Type: System.Boolean
true if the gallery category distributes its available width equally between its columns; otherwise, false. The registered default is false. For more information about what can influence the value, see Dependency Property Value Precedence.

Dependency Property Information

Identifier field

ColumnsStretchToFillProperty

Metadata properties set to true

None

Remarks

The ColumnsStretchToFill property only has an effect when IsSharedColumnSizeScope is set to true.

.NET Framework Security

See Also

Reference

RibbonGalleryCategory Class

Microsoft.Windows.Controls.Ribbon Namespace

MaxColumnCount

MinColumnCount