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:
[TelerikToolboxCategory("Navigation")]
public class RadOrderedWrapPanel : Panel, IVariantControl
Inheritance: objectRadOrderedWrapPanel
Implements:
Constructors
Initializes a new instance of the RadOrderedWrapPanel class.
public RadOrderedWrapPanel()
Fields
CompressedItemsOrderProperty
DependencyProperty
Identifies the CompressedItemsOrder property.
public static readonly DependencyProperty CompressedItemsOrderProperty
CompressedThresholdProperty
DependencyProperty
Identifies the CompressedThreshold property.
public static readonly DependencyProperty CompressedThresholdProperty
IsCompressedProperty
DependencyProperty
Identifies the IsCompressed property.
public static readonly DependencyProperty IsCompressedProperty
ItemSpacingProperty
DependencyProperty
Identifies the ItemSpacing property.
public static readonly DependencyProperty ItemSpacingProperty
RowSpacingProperty
DependencyProperty
Identifies the RowSpacing property.
public static readonly DependencyProperty RowSpacingProperty
Properties
Gets or sets the compressed items order.
public string CompressedItemsOrder { get; set; }
The compressed items order.
Gets or sets the compressed threshold.
public CollapseThreshold CompressedThreshold { get; set; }
The compressed threshold.
Gets or sets a value indicating whether this instance is compressed.
public bool IsCompressed { get; }
True if this instance is compressed; otherwise, false.
Gets or sets the item spacing when the panel is in normal state.
public double ItemSpacing { get; set; }
The item spacing.
The value of this property is ignored when in compressed state.
Methods
Provides the behavior for the Arrange pass of Silverlight layout. Classes can override this method to define their own Arrange pass behavior.
protected override Size ArrangeOverride(Size finalSize)
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.
Gets a value indicating the height spacing between the items.
Provides the behavior for the Measure pass of Silverlight layout. Classes can override this method to define their own Measure pass behavior.
protected override Size MeasureOverride(Size availableSize)
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()
AutomationPeer
Creates default FrameworkElementAutomationPeer for the panel.
protected override AutomationPeer OnCreateAutomationPeer()
AutomationPeer
Gets a value indicating the height spacing between the items.
public static void SetRowSpacing(DependencyObject obj, int value)
Sets the variant.
public void SetVariant(RibbonGroupVariant variant)
The variant.
Implements: