SplitContainerControl Class
The control that consists of two panels separated by a splitter, which can be dragged by an end-user to resize the panels.
Namespace: DevExpress.XtraEditors
Assembly: DevExpress.Utils.v18.1.dll
Declaration
[SmartTagAction(typeof(SplitContainerControlActions), "AddCustomHeaderButtons", "Add Custom Header Buttons", SmartTagActionType.CloseAfterExecute)]
[ToolboxTabName("DX.18.1: Navigation & Layout")]
[ToolboxBitmap(typeof(ToolboxIconsRootNS), "SplitContainerControl")]
[SmartTagFilter(typeof(SplitContainerControlFilter))]
public class SplitContainerControl :
GroupControl,
IXtraSerializable,
ISupportXtraSerializer
Remarks
The Split Container consists of two panels that can contain other controls. These panels are separated by a splitter used to resize the panels.
The following are main properties that maintain the control’s functionality.
- SplitContainerControl.Panel1 - Gets the left (or top) panel.
- SplitContainerControl.Panel2 - Gets the right (or bottom) panel.
- SplitContainerControl.FixedPanel - Gets or sets the fixed panel.
- SplitContainerControl.PanelVisibility - Gets or sets the visibility of the panels.
- SplitContainerControl.Horizontal - Gets or sets whether the panels are arranged horizontally or vertically.
- SplitContainerControl.SplitterPosition - Gets or sets the splitter’s location.
To enable the auto-scrolling functionality for a SplitContainerControl‘s panels, add XtraScrollableControl objects to the panels. Set the Dock property for the XtraScrollableControl objects to Fill.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the SplitContainerControl class.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.