ClassRadOrderedWrapPanel
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
RadOrderedWrapPanel()
Initializes a new instance of the RadOrderedWrapPanel class.
Declaration
public RadOrderedWrapPanel()
Fields
CompressedItemsOrderProperty
Identifies the CompressedItemsOrder property.
Declaration
public static readonly DependencyProperty CompressedItemsOrderProperty
Field Value
DependencyProperty
CompressedThresholdProperty
Identifies the CompressedThreshold property.
Declaration
public static readonly DependencyProperty CompressedThresholdProperty
Field Value
DependencyProperty
IsCompressedProperty
Identifies the IsCompressed property.
Declaration
public static readonly DependencyProperty IsCompressedProperty
Field Value
DependencyProperty
ItemSpacingProperty
Identifies the ItemSpacing property.
Declaration
public static readonly DependencyProperty ItemSpacingProperty
Field Value
DependencyProperty
RowSpacingProperty
Identifies the RowSpacing property.
Declaration
public static readonly DependencyProperty RowSpacingProperty
Field Value
DependencyProperty
Properties
CompressedItemsOrder
Gets or sets the compressed items order.
Declaration
public string CompressedItemsOrder { get; set; }
Property Value
The compressed items order.
CompressedThreshold
Gets or sets the compressed threshold.
Declaration
public CollapseThreshold CompressedThreshold { get; set; }
Property Value
The compressed threshold.
IsCompressed
Gets or sets a value indicating whether this instance is compressed.
Declaration
public bool IsCompressed { get; }
Property Value
True if this instance is compressed; otherwise, false.
ItemSpacing
Gets or sets the item spacing when the panel is in normal state.
Declaration
public double ItemSpacing { get; set; }
Property Value
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
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
public static int GetRowSpacing(DependencyObject obj)
Parameters
obj
DependencyObject
Returns
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
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
protected override AutomationPeer OnCreateAutomationPeer()
Returns
AutomationPeer
SetRowSpacing(DependencyObject, int)
Gets a value indicating the height spacing between the items.
Declaration
public static void SetRowSpacing(DependencyObject obj, int value)
Parameters
obj
DependencyObject
value
SetVariant(RibbonGroupVariant)
Sets the variant.
Declaration
public void SetVariant(RibbonGroupVariant variant)
Parameters
variant
The variant.
Implements