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, DUCE.IResource, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IHaveResources, IQueryAmbient, IOrientedElement, IHierarchyContainer, IHierarchyNode
Inheritance:
System.Object System.Windows.Threading.DispatcherObject System.Windows.DependencyObject System.Windows.Media.Visual System.Windows.UIElement System.Windows.FrameworkElement System.Windows.Controls.Control Object
Implements:
IOrientedElement

Constructors

SplitContainer()

Initializes an instance of the SplitContainer class.

public SplitContainer()

Properties

Children

Gets the collection of child System.Windows.FrameworkElement objects.

public ObservableCollection<FrameworkElement> Children { get; }

Property Value

System.Collections.ObjectModel.ObservableCollection<System.Windows.FrameworkElement>:

The collection of child System.Windows.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

System.Collections.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

System.Windows.Controls.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 System.Windows.Automation.Peers.AutomationPeer object for this control instance.

protected override AutomationPeer OnCreateAutomationPeer()

Returns

System.Windows.Automation.Peers.AutomationPeer:

An System.Windows.Automation.Peers.AutomationPeer instance.

ResizeSlots(Double[])

Resizes the slots based on the specified ratios, if any.

public void ResizeSlots(params double[] desiredRatios)
Parameter Type Description
desiredRatios System.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

System.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

Inherited Members

  • System.Object.Equals(System.Object)
  • System.Object.Equals(System.Object, System.Object)
  • System.Object.ReferenceEquals(System.Object, System.Object)
  • System.Object.GetHashCode()
  • System.Object.GetType()
  • System.Object.MemberwiseClone()

Extension Methods