RibbonGallery.MaxColumnCount Property

Gets or sets a value that specifies the maximum number of columns used to layout items in a gallery ItemsPanel.

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

Syntax

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

Property Value

Type: System.Int32
The maximum number of columns used to layout items in a gallery ItemsPanel. The registered default is Int32.MaxValue. For more information about what can influence the value, see Dependency Property Value Precedence.

Dependency Property Information

Identifier field

MaxColumnCountProperty

Metadata properties set to true

AffectsMeasure

.NET Framework Security

See Also

Reference

RibbonGallery Class

Microsoft.Windows.Controls.Ribbon Namespace