New to Telerik UI for .NET MAUIStart a free 30-day trial

Provides a layout manager for uniform grid layouts that arranges child views in a grid with equally-sized cells. This class implements ILayoutManager to provide custom layout behavior for uniform grid scenarios.

Definition

Namespace:Telerik.Maui

Assembly:Telerik.Maui.Core.dll

Syntax:

C#
public class RadUniformGridLayoutManager : ILayoutManager

Inheritance: objectRadUniformGridLayoutManager

Implements: ILayoutManager

Constructors

Initializes a new instance of the RadUniformGridLayoutManager class with the specified layout.

C#
public RadUniformGridLayoutManager(ILayout layout)
Parameters:layoutILayout

The ILayout that this manager will handle.

Properties

Gets the uniform grid layout that this manager handles.

C#
public ILayout UniformGridLayout { get; }
Property Value:

The ILayout instance associated with this manager.

Methods

Arranges the child views within the specified bounds using a uniform grid pattern. Each child view is positioned in a grid cell with equal dimensions.

C#
public Size ArrangeChildren(Rect bounds)
Parameters:boundsRect

The Rect that defines the area for arranging child views.

Returns:

Size

The actual Size used by the layout.

Measures the desired size of the layout within the specified constraints. This method calculates the optimal size for the uniform grid based on child view requirements.

C#
public Size Measure(double widthConstraint, double heightConstraint)
Parameters:widthConstraintdouble

The available width for the layout.

heightConstraintdouble

The available height for the layout.

Returns:

Size

A Size representing the desired size of the layout.