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

Syntax:

C#
public class ProportionalStackPanel : Panel

Inheritance: objectProportionalStackPanel

Constructors

C#
public ProportionalStackPanel()

Fields

ElementHeightProperty

DependencyProperty

Identifies the ElementHeight attached property.

C#
public static readonly DependencyProperty ElementHeightProperty

ElementMaxHeightProperty

DependencyProperty

Identifies the ElementMaxHeight attached property.

C#
public static readonly DependencyProperty ElementMaxHeightProperty

ElementMaxWidthProperty

DependencyProperty

Identifies the ElementMaxWidth attached property.

C#
public static readonly DependencyProperty ElementMaxWidthProperty

ElementMinHeightProperty

DependencyProperty

Identifies the ElementMinHeight attached property.

C#
public static readonly DependencyProperty ElementMinHeightProperty

ElementMinWidthProperty

DependencyProperty

Identifies the ElementMinWidth attached property.

C#
public static readonly DependencyProperty ElementMinWidthProperty

ElementWidthProperty

DependencyProperty

Identifies the ElementWidth attached property.

C#
public static readonly DependencyProperty ElementWidthProperty

OrientationProperty

DependencyProperty

Identifies the Orientation dependency property.

C#
public static readonly DependencyProperty OrientationProperty

RelativeSizeProperty

DependencyProperty

Identifies the RelativeSize attached property.

C#
public static readonly DependencyProperty RelativeSizeProperty

SuppressMeasureProperty

DependencyProperty

Identifies the SuppressMeasure attached property.

C#
public static readonly DependencyProperty SuppressMeasureProperty

Properties

Orientation

Orientation

Gets or sets a value that specifies the dimension in which child content is arranged. This is a dependency property.

C#
public Orientation Orientation { get; set; }

Methods

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

Gets the Height of the child element.

C#
public static double GetElementHeight(DependencyObject obj)
Parameters:objDependencyObjectReturns:

double

Gets the MaxHeight of the child element.

C#
public static double GetElementMaxHeight(DependencyObject obj)
Parameters:objDependencyObjectReturns:

double

Gets the MaxWidth of the child element.

C#
public static double GetElementMaxWidth(DependencyObject obj)
Parameters:objDependencyObjectReturns:

double

Gets the MinHeight of the child element.

C#
public static double GetElementMinHeight(DependencyObject obj)
Parameters:objDependencyObjectReturns:

double

Gets the MinWidth of the child element.

C#
public static double GetElementMinWidth(DependencyObject obj)
Parameters:objDependencyObjectReturns:

double

Gets the Width of the child element.

C#
public static double GetElementWidth(DependencyObject obj)
Parameters:objDependencyObjectReturns:

double

Gets the Relative size.

C#
public static Size GetRelativeSize(DependencyObject obj)
Parameters:objDependencyObjectReturns:

Size

Gets the SuppressMeasure attached property. If true changing RelativeSize will not invalidate measure.

C#
public static bool GetSuppressMeasure(DependencyObject obj)
Parameters:objDependencyObjectReturns:

bool

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

Sets the Height of the child element.

C#
public static void SetElementHeight(DependencyObject obj, double value)
Parameters:objDependencyObjectvaluedouble

Sets the MaxHeight of the child element.

C#
public static void SetElementMaxHeight(DependencyObject obj, double value)
Parameters:objDependencyObjectvaluedouble

Sets the MaxWidth of the child element.

C#
public static void SetElementMaxWidth(DependencyObject obj, double value)
Parameters:objDependencyObjectvaluedouble

Sets the MinHeight of the child element.

C#
public static void SetElementMinHeight(DependencyObject obj, double value)
Parameters:objDependencyObjectvaluedouble

Sets the MinWidth of the child element.

C#
public static void SetElementMinWidth(DependencyObject obj, double value)
Parameters:objDependencyObjectvaluedouble

Sets the Width of the child element.

C#
public static void SetElementWidth(DependencyObject obj, double value)
Parameters:objDependencyObjectvaluedouble

Sets the Relative size.

C#
public static void SetRelativeSize(DependencyObject obj, Size value)
Parameters:objDependencyObjectvalueSize

Sets the SuppressMeasure attached property. When set to true changing RelativeSize will not invalidate measure.

C#
public static void SetSuppressMeasure(DependencyObject obj, bool value)
Parameters:objDependencyObjectvaluebool