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

Represents a collapsible panel component, designed for navigation purposes. The RadCollapsiblePanel class inherits from the Panel class and is optimized to dynamically adjust its height based on the largest button within it. If no large buttons are present, the height is determined by the property. The panel also supports layout customization through attached properties to control the spacing between items and the number of small/medium buttons displayed per column.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.RibbonView.dll

Syntax:

C#
[TelerikToolboxCategory("Navigation")]
public class RadCollapsiblePanel : Panel

Inheritance: objectRadCollapsiblePanel

Constructors

C#
public RadCollapsiblePanel()

Fields

ItemSpacingProperty

DependencyProperty

Identifies the ItemSpacing property.

C#
public static readonly DependencyProperty ItemSpacingProperty

Identifies the CompressedThreshold Attached property.

C#
public static readonly DependencyProperty SmallButtonsPerColumnProperty

Methods

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 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.

C#
public static int GetItemSpacing(DependencyObject obj)
Parameters:objDependencyObjectReturns:

int

Gets a value indicating the number of small/medium buttons per column.

C#
public static int GetSmallButtonsPerColumn(DependencyObject obj)
Parameters:objDependencyObjectReturns:

int

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 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.

Creates default FrameworkElementAutomationPeer for the panel.

C#
protected override AutomationPeer OnCreateAutomationPeer()
Returns:

AutomationPeer

Sets a value indicating the height spacing between the items.

C#
public static void SetItemSpacing(DependencyObject obj, int value)
Parameters:objDependencyObjectvalueint

Sets a value indicating the number of small/medium buttons per column.

C#
public static void SetSmallButtonsPerColumn(DependencyObject obj, int value)
Parameters:objDependencyObjectvalueint