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
Afficher le fichier Open project: bitbonk/DockTab

Méthodes publiques

Свойство Type Description
LengthProperty System.Windows.DependencyProperty
OrientationProperty System.Windows.DependencyProperty

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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

Méthode 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 méthode

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. ///
Résultat System.Windows.Size

GetLength() public static méthode

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. ///
Résultat SplitPanelLength

MeasureOverride() protected méthode

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. ///
Résultat System.Windows.Size

SetLength() public static méthode

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. ///
Résultat void

SplitPanel() public méthode

Initializes a new instance of the SplitPanel class.
public SplitPanel ( ) : System
Résultat System

Property Details

LengthProperty public_oe static_oe property

Identifies the Length attached property.
public static DependencyProperty,System.Windows LengthProperty
Résultat System.Windows.DependencyProperty

OrientationProperty public_oe static_oe property

Identifies the Orientation dependency property.
public static DependencyProperty,System.Windows OrientationProperty
Résultat System.Windows.DependencyProperty