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

Panel which measures its children like a Canvas when MeasureChildrenWithInfinity is true, otherwise it acts like Grid.

Definition

Namespace:Telerik.Windows.Controls.Callout

Assembly:Telerik.Windows.Controls.dll

Syntax:

C#
public class CanvasGrid : Grid

Inheritance: objectCanvasGrid

Constructors

C#
public CanvasGrid()

Properties

Gets or sets a value indicating whether this panel will measure its children with infinity like in Canvas.

C#
public bool MeasureChildrenWithInfinity { get; set; }

Methods

Provides the behavior for the "Arrange" pass of layout.

C#
protected override Size ArrangeOverride(Size arrangeSize)
Parameters:arrangeSizeSize

The final area within the parent that this element should use to arrange itself and its children.

Returns:

Size

The actual size used.

Provides the behavior for the "Measure" pass of layout.

C#
protected override Size MeasureOverride(Size constraint)
Parameters:constraintSize

The available size that this element can give to child elements.

Returns:

Size

The size that this element determines it needs during layout, based on its calculations of child element sizes.