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

Panel that arrange its children as a StackPanel if no DesiredWidth or DesiredHeight is set or if set as a Grid with Row/Column Definitions.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.Navigation.dll

Syntax:

C#
public class PanelBarPanel : Panel

Inheritance: objectPanelBarPanel

Constructors

Initializes a new instance of the PanelBarPanel class.

C#
public PanelBarPanel()

Fields

DesiredHeightProperty

DependencyProperty

Identifies the DesiredHeight attached property.

C#
public static readonly DependencyProperty DesiredHeightProperty

DesiredWidthProperty

DependencyProperty

Identifies the DesiredWidth attached property.

C#
public static readonly DependencyProperty DesiredWidthProperty

OrientationProperty

DependencyProperty

Identifies the Orientation dependency property.

C#
public static readonly DependencyProperty OrientationProperty

Properties

C#
protected override int VisualChildrenCount { get; }

Methods

Provides the behavior for the "Arrange" layout pass. 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.

Gets the desired height.

C#
public static GridLength GetDesiredHeight(DependencyObject obj)
Parameters:objDependencyObjectReturns:

GridLength

Gets the desired width.

C#
public static GridLength GetDesiredWidth(DependencyObject obj)
Parameters:objDependencyObjectReturns:

GridLength

C#
protected override Visual GetVisualChild(int index)
Parameters:indexintReturns:

Visual

Provides the behavior for the "measure" layout pass. 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.

Sets the desired height.

C#
public static void SetDesiredHeight(DependencyObject obj, GridLength value)
Parameters:objDependencyObjectvalueGridLength

Sets the desired width.

C#
public static void SetDesiredWidth(DependencyObject obj, GridLength value)
Parameters:objDependencyObjectvalueGridLength