SplitContainer Class
Represents a container that has multiple split panes of content.
[TemplatePart(Name = "PART_Panel", Type = typeof(SplitContainerPanel))]
public class SplitContainer : Control, IOrientedElement
- Inheritance:
- object Visual UIElement FrameworkElement Control object
- Implements:
- IOrientedElement
Constructors
SplitContainer()
Initializes an instance of the class.
public SplitContainer()
Properties
Children
The collection of child FrameworkElement objects.
public ObservableCollection<FrameworkElement> Children { get; }
Property Value
DockHost
The DockHost that contains this control.
DockSite
The DockSite that is managing this control.
LogicalChildren
Gets an enumerator for logical child elements of this element.
protected override IEnumerator LogicalChildren { get; }
Property Value
- IEnumerator:
An enumerator for logical child elements of this element.
Orientation
The orientation of the child element layout.
public Orientation Orientation { get; set; }
Property Value
- Orientation:
The default value is
Horizontal.
Methods
OnApplyTemplate()
When overridden in a derived class, is invoked whenever application code or internal processes call ApplyTemplate().
public override void OnApplyTemplate()
OnCreateAutomationPeer()
Returns class-specific AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.
protected override AutomationPeer OnCreateAutomationPeer()
Returns
- AutomationPeer:
The type-specific AutomationPeer implementation.
ResizeSlots(params double[]?)
Resizes the slots based on the specified ratios, if any.
public void ResizeSlots(params double[]? desiredRatios)
| Parameter | Type | Description |
|---|---|---|
| desiredRatios | double[] | This list of zero or more desired ratios. |
Remarks
If desiredRatios contains 0-1 items, then the slots will
be resized equally. Otherwise, the specified ratio will be applied to the associated slot
(i.e. the slot that shared the same index). If there are more slots than there are
desired ratios, then the last ratio will be repeated for the remaining slots.
ReverseSlots()
Reverses the slots.
public void ReverseSlots()
ToString()
Returns the string representation of this object.
Fields
OrientationProperty
Defines the Orientation property.
public static readonly DependencyProperty OrientationProperty