In This Article

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 SplitContainer class.

public SplitContainer()

Properties

Children

Gets the collection of child FrameworkElement objects.

public ObservableCollection<FrameworkElement> Children { get; }

Property Value

ObservableCollection<FrameworkElement>:

The collection of child FrameworkElement objects.

DockHost

Gets the DockHost that contains this control.

public DockHost DockHost { get; }

Property Value

DockHost:

The DockHost that contains this control.

DockSite

Gets the DockSite that is managing this control.

public DockSite DockSite { get; }

Property Value

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

Gets or sets the Orientation of the child element layout.

public Orientation Orientation { get; set; }

Property Value

Orientation:

The Orientation of the child element layout. The default value is Horizontal.

Methods

OnApplyTemplate()

Invoked whenever application code or internal processes call ApplyTemplate.

public override void OnApplyTemplate()

OnCreateAutomationPeer()

Returns an AutomationPeer object for this control instance.

protected override AutomationPeer OnCreateAutomationPeer()

Returns

AutomationPeer:

An AutomationPeer instance.

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 a String that represents the current Object.

public override string ToString()

Returns

string:

A String that represents the current Object.

Fields

OrientationProperty

Identifies the Orientation dependency property. This field is read-only.

public static readonly DependencyProperty OrientationProperty