New to Telerik UI for WPFStart a free 30-day trial

Represents a uniform grid panel that arranges its child elements in a structured grid format, distributing space evenly among them. The grid can be configured to hide the first row or column, preserve space for collapsed children, and allows for orientation settings to control the flow of child elements (horizontal or vertical). The RadUniformGrid adapts its layout based on the number of defined rows and columns, measuring and arranging child elements accordingly. By default, the grid's orientation is horizontal, and its initial columns and rows are set to zero.

Definition

Namespace:Telerik.Windows.Controls.Primitives

Assembly:Telerik.Windows.Controls.dll

Syntax:

C#
public class RadUniformGrid : Panel

Inheritance: objectRadUniformGrid

Derived Classes: CalendarPanel

Constructors

Initializes a new instance of the RadUniformGrid class.

C#
public RadUniformGrid()

Fields

ChildrenFlowProperty

DependencyProperty

Identifies the ChildrenFlow dependency property.

C#
public static readonly DependencyProperty ChildrenFlowProperty

ColumnsProperty

DependencyProperty

Identifies the Columns dependency property.

C#
public static readonly DependencyProperty ColumnsProperty
Field Value:

The identifier for the Columns dependency property.

FirstColumnProperty

DependencyProperty

Identifies the FirstColumn dependency property.

C#
public static readonly DependencyProperty FirstColumnProperty
Field Value:

The identifier for the FirstColumn dependency property.

HideFirstColumnProperty

DependencyProperty

Identifies the HideFirstColumn dependency property.

C#
public static readonly DependencyProperty HideFirstColumnProperty

HideFirstRowProperty

DependencyProperty

Identifies the HideFirstRow dependency property.

C#
public static readonly DependencyProperty HideFirstRowProperty

Identifies the PreserveSpaceForCollapsedChildren dependency property.

C#
public static readonly DependencyProperty PreserveSpaceForCollapsedChildrenProperty

RowsProperty

DependencyProperty

Identifies the Rows dependency property.

C#
public static readonly DependencyProperty RowsProperty
Field Value:

The identifier for the Rows dependency property.

Properties

ChildrenFlow

Orientation

Gets or sets a value that specifies the dimension in which child content is arranged.

C#
public Orientation ChildrenFlow { get; set; }
Property Value:

An Orientation value that represents the physical orientation of content within the RadUniformGrid as horizontal or vertical. The default value is .

Gets or sets the number of columns that are in the grid.

C#
public int Columns { get; set; }
Property Value:

The number of columns that are in the grid. The default value is zero (0).

Gets or sets the number of leading blank cells in the first row of the grid.

C#
public int FirstColumn { get; set; }
Property Value:

The number of empty cells that are in the first row of the grid. The default value is zero (0).

Gets or sets value that hide or show the first column. This is a Dependency property.

C#
public bool HideFirstColumn { get; set; }

Gets or sets value that hide or show the first row. This is a Dependency property.

C#
public bool HideFirstRow { get; set; }

Gets or sets a value specifying whether a collapsed child's size should be preserved.

C#
public bool PreserveSpaceForCollapsedChildren { get; set; }

Gets or sets the number of rows that are in the grid.

C#
public int Rows { get; set; }
Property Value:

The number of rows that are in the grid. The default value is zero (0).

Methods

Defines the layout of the RadUniformGrid by distributing space evenly among all of the child elements.

C#
protected override Size ArrangeOverride(Size finalSize)
Parameters:finalSizeSize

The Size of the area for the grid to use.

Returns:

Size

The actual Size of the grid that is rendered to display the child elements that are visible.

Computes the desired size of the RadUniformGrid by measuring all of the child elements.

C#
protected override Size MeasureOverride(Size availableSize)
Parameters:availableSizeSize

The Size of the available area for the grid.

Returns:

Size

The desired Size based on the child content of the grid and the constraint parameter.