Class
RadOrderedWrapPanel

This class defines a panel capable of arranging its child elements in either two or three rows based on its size. The layout of the items can vary between the compressed (three-row) and normal (two-row) states.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.RibbonView.dll

Syntax:

cs-api-definition
[TelerikToolboxCategory("Navigation")]
public class RadOrderedWrapPanel : Panel, IVariantControl

Inheritance: objectRadOrderedWrapPanel

Implements: IVariantControl

Constructors

RadOrderedWrapPanel()

Initializes a new instance of the RadOrderedWrapPanel class.

Declaration

cs-api-definition
public RadOrderedWrapPanel()

Fields

CompressedItemsOrderProperty

Identifies the CompressedItemsOrder property.

Declaration

cs-api-definition
public static readonly DependencyProperty CompressedItemsOrderProperty

Field Value

DependencyProperty

CompressedThresholdProperty

Identifies the CompressedThreshold property.

Declaration

cs-api-definition
public static readonly DependencyProperty CompressedThresholdProperty

Field Value

DependencyProperty

IsCompressedProperty

Identifies the IsCompressed property.

Declaration

cs-api-definition
public static readonly DependencyProperty IsCompressedProperty

Field Value

DependencyProperty

ItemSpacingProperty

Identifies the ItemSpacing property.

Declaration

cs-api-definition
public static readonly DependencyProperty ItemSpacingProperty

Field Value

DependencyProperty

RowSpacingProperty

Identifies the RowSpacing property.

Declaration

cs-api-definition
public static readonly DependencyProperty RowSpacingProperty

Field Value

DependencyProperty

Properties

CompressedItemsOrder

Gets or sets the compressed items order.

Declaration

cs-api-definition
public string CompressedItemsOrder { get; set; }

Property Value

string

The compressed items order.

CompressedThreshold

Gets or sets the compressed threshold.

Declaration

cs-api-definition
public CollapseThreshold CompressedThreshold { get; set; }

Property Value

CollapseThreshold

The compressed threshold.

IsCompressed

Gets or sets a value indicating whether this instance is compressed.

Declaration

cs-api-definition
public bool IsCompressed { get; }

Property Value

bool

True if this instance is compressed; otherwise, false.

ItemSpacing

Gets or sets the item spacing when the panel is in normal state.

Declaration

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

Property Value

double

The item spacing.

Remarks

The value of this property is ignored when in compressed state.

Methods

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 object should use to arrange itself and its children.

Returns

Size

The actual size used once the element is arranged.

GetRowSpacing(DependencyObject)

Gets a value indicating the height spacing between the items.

Declaration

cs-api-definition
public static int GetRowSpacing(DependencyObject obj)

Parameters

obj

DependencyObject

Returns

int

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 object can give to child objects. Infinity can be specified as a value to indicate that the object will size to whatever content is available.

Returns

Size

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

OnCreateAutomationPeer()

Creates default FrameworkElementAutomationPeer for the panel.

Declaration

cs-api-definition
protected override AutomationPeer OnCreateAutomationPeer()

Returns

AutomationPeer

SetRowSpacing(DependencyObject, int)

Gets a value indicating the height spacing between the items.

Declaration

cs-api-definition
public static void SetRowSpacing(DependencyObject obj, int value)

Parameters

obj

DependencyObject

value

int

SetVariant(RibbonGroupVariant)

Sets the variant.

Declaration

cs-api-definition
public void SetVariant(RibbonGroupVariant variant)

Parameters

variant

RibbonGroupVariant

The variant.

Implements IVariantControl.SetVariant(RibbonGroupVariant)