Class
RadWrapPanel

Positions child elements in sequential position from left to right, breaking content to the next line at the edge of the containing box. Subsequent ordering happens sequentially from top to bottom or from right to left, depending on the value of the Orientation property.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.dll

Syntax:

cs-api-definition
public class RadWrapPanel : Panel

Inheritance: objectRadWrapPanel

Derived Classes: AutoCompleteBoxesWrapPanel

Constructors

RadWrapPanel()

Initializes a new instance of the RadWrapPanel class.

Declaration

cs-api-definition
public RadWrapPanel()

Fields

AnimationDurationProperty

Identifies the AnimationDuration dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty AnimationDurationProperty

Field Value

DependencyProperty

IsAnimatedProperty

Identifies the IsAnimated dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty IsAnimatedProperty

Field Value

DependencyProperty

ItemHeightProperty

Identifies the ItemHeight dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ItemHeightProperty

Field Value

DependencyProperty

ItemWidthProperty

Identifies the ItemWidth dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ItemWidthProperty

Field Value

DependencyProperty

OrientationProperty

Identifies the Orientation dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty OrientationProperty

Field Value

DependencyProperty

Properties

AnimationDuration

Gets or sets the duration of the animation.

Declaration

cs-api-definition
public int AnimationDuration { get; set; }

Property Value

int

The duration of the animation.

IsAnimated

Gets or sets a value indicating whether this RadWrapPanel is animated.

Declaration

cs-api-definition
public bool IsAnimated { get; set; }

Property Value

bool

True if this instance is animated; otherwise, false.

ItemHeight

Gets or sets a value that specifies the height of all items that are contained within a WrapPanel. This is a dependency property.

Declaration

cs-api-definition
public double ItemHeight { get; set; }

Property Value

double

ItemWidth

Gets or sets a value that specifies the width of all items that are contained within a WrapPanel. This is a dependency property.

Declaration

cs-api-definition
public double ItemWidth { get; set; }

Property Value

double

Orientation

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

Declaration

cs-api-definition
public Orientation Orientation { get; set; }

Property Value

Orientation

Methods

ArrangeElement(UIElement, Rect, Size)

Provides the behavior for the "arrange" pass of Silverlight layout for each children of the RadWrapPanel. Classes can override this method to define their own arrange pass behavior.

Declaration

cs-api-definition
protected virtual void ArrangeElement(UIElement element, Rect finalRect, Size finalSize)

Parameters

element

UIElement

finalRect

Rect

finalSize

Size

ArrangeOverride(Size)

Provides the behavior for the "Arrange" pass of Silverlight layout. Classes can override this method to define their own arrange pass behavior.

Declaration

cs-api-definition
protected override Size ArrangeOverride(Size finalSize)

Parameters

finalSize

Size

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

Returns

Size

The actual size used.

MeasureOverride(Size)

Provides the behavior for the "measure" pass of Silverlight layout. Classes can override this method to define their own measure pass behavior.

Declaration

cs-api-definition
protected override Size MeasureOverride(Size availableSize)

Parameters

availableSize

Size

The available size that this element can give to child elements. Infinity can be specified as a value to indicate that the element will size to whatever content is available.

Returns

Size

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