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

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:

C#
public class RadWrapPanel : Panel

Inheritance: objectRadWrapPanel

Derived Classes: AutoCompleteBoxesWrapPanel

Constructors

Initializes a new instance of the RadWrapPanel class.

C#
public RadWrapPanel()

Fields

AnimationDurationProperty

DependencyProperty

Identifies the AnimationDuration dependency property.

C#
public static readonly DependencyProperty AnimationDurationProperty

IsAnimatedProperty

DependencyProperty

Identifies the IsAnimated dependency property.

C#
public static readonly DependencyProperty IsAnimatedProperty

ItemHeightProperty

DependencyProperty

Identifies the ItemHeight dependency property.

C#
public static readonly DependencyProperty ItemHeightProperty

ItemWidthProperty

DependencyProperty

Identifies the ItemWidth dependency property.

C#
public static readonly DependencyProperty ItemWidthProperty

OrientationProperty

DependencyProperty

Identifies the Orientation dependency property.

C#
public static readonly DependencyProperty OrientationProperty

Properties

Gets or sets the duration of the animation.

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

The duration of the animation.

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

C#
public bool IsAnimated { get; set; }
Property Value:

True if this instance is animated; otherwise, false.

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

C#
public double ItemHeight { get; set; }

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

C#
public double ItemWidth { get; set; }

Orientation

Orientation

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

C#
public Orientation Orientation { get; set; }

Methods

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.

C#
protected virtual void ArrangeElement(UIElement element, Rect finalRect, Size finalSize)
Parameters:elementUIElementfinalRectRectfinalSizeSize

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

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

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 Silverlight layout. Classes can override this method to define their own measure pass behavior.

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

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.