C# Class DockTab.SplitPanel

Resizes and arranges child elements into a single row that can be oriented horizontally or vertically where the amount space that each child element consumes can be defined using the SplitPanel.LengthProperty attached property. See SplitPanelUnitType for the different resize behaviors. The SplitPanel also reacts on child SplitThumb drags resizing the all child elements accordingly.
Inheritance: System.Windows.Controls.Panel
显示文件 Open project: bitbonk/DockTab

Public Properties

Property Type Description
LengthProperty System.Windows.DependencyProperty
OrientationProperty System.Windows.DependencyProperty

Public Methods

Method Description
GetLength ( UIElement element ) : SplitPanelLength

Gets the value of the Length attached property from a given UIElement.

SetLength ( UIElement element, SplitPanelLength value ) : void

Sets the value of the Length attached property to a given UIElement.

SplitPanel ( ) : System

Initializes a new instance of the SplitPanel class.

Protected Methods

Method Description
ArrangeOverride ( Size finalSize ) : Size

When overridden in a derived class, positions child elements and determines a size for a T:System.Windows.FrameworkElement derived class.

MeasureOverride ( Size availableSize ) : Size

When overridden in a derived class, measures the size in layout required for child elements and determines a size for the T:System.Windows.FrameworkElement-derived class.

Private Methods

Method Description
CalculateItemRects ( Size availableSize ) : System.Windows.Rect[]
GeOffsetLength ( UIElement element, double offestDelta ) : SplitPanelLength
GetChildrenLengths ( ) : void
GetRenderLength ( UIElement element ) : double
SplitThumbOnDragged ( object sender, System.Windows.Controls.Primitives.DragDeltaEventArgs e ) : void

Method Details

ArrangeOverride() protected method

When overridden in a derived class, positions child elements and determines a size for a T:System.Windows.FrameworkElement derived class.
protected ArrangeOverride ( Size finalSize ) : Size
finalSize System.Windows.Size /// The final area within the parent that this element should use to arrange itself and its children. ///
return System.Windows.Size

GetLength() public static method

Gets the value of the Length attached property from a given UIElement.
public static GetLength ( UIElement element ) : SplitPanelLength
element UIElement /// The element from which to read the property value. ///
return SplitPanelLength

MeasureOverride() protected method

When overridden in a derived class, measures the size in layout required for child elements and determines a size for the T:System.Windows.FrameworkElement-derived class.
protected MeasureOverride ( Size availableSize ) : Size
availableSize System.Windows.Size /// The available size that this element can give to child elements. Infinity can be specified as a value to indicate that the element will size to whatever content is available. ///
return System.Windows.Size

SetLength() public static method

Sets the value of the Length attached property to a given UIElement.
public static SetLength ( UIElement element, SplitPanelLength value ) : void
element UIElement /// The element on which to set the Length attached property. ///
value SplitPanelLength /// The property value to set. ///
return void

SplitPanel() public method

Initializes a new instance of the SplitPanel class.
public SplitPanel ( ) : System
return System

Property Details

LengthProperty public_oe static_oe property

Identifies the Length attached property.
public static DependencyProperty,System.Windows LengthProperty
return System.Windows.DependencyProperty

OrientationProperty public_oe static_oe property

Identifies the Orientation dependency property.
public static DependencyProperty,System.Windows OrientationProperty
return System.Windows.DependencyProperty