Class
RadUniformGridLayoutManager

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:

cs-api-definition
public class RadUniformGridLayoutManager : ILayoutManager

Inheritance: objectRadUniformGridLayoutManager

Implements: ILayoutManager

Constructors

RadUniformGridLayoutManager(ILayout)

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

Declaration

cs-api-definition
public RadUniformGridLayoutManager(ILayout layout)

Parameters

layout

ILayout

The ILayout that this manager will handle.

Properties

UniformGridLayout

Gets the uniform grid layout that this manager handles.

Declaration

cs-api-definition
public ILayout UniformGridLayout { get; }

Property Value

ILayout

The ILayout instance associated with this manager.

Methods

ArrangeChildren(Rect)

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.

Declaration

cs-api-definition
public Size ArrangeChildren(Rect bounds)

Parameters

bounds

Rect

The Rect that defines the area for arranging child views.

Returns

Size

The actual Size used by the layout.

Measure(double, double)

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.

Declaration

cs-api-definition
public Size Measure(double widthConstraint, double heightConstraint)

Parameters

widthConstraint

double

The available width for the layout.

heightConstraint

double

The available height for the layout.

Returns

Size

A Size representing the desired size of the layout.