HorizontalSplitView
Description
Divides space into top and bottom panes with an optional resizable divider
HorizontalSplitView divides a container into a top pane and a bottom pane separated by a thin splitter bar. It is well-suited for editor/preview layouts, terminal-style interfaces, or any surface where two stacked areas need to coexist.
The divider can be made interactive so users can drag it to redistribute space between the two panes at runtime.
API reference
public class HorizontalSplitView : IComponentA horizontal split pane with a draggable handle that resizes a left and right pane.
Constructors
Methods
public HorizontalSplitView Resizable(Action<int> onResizeEnd = null)Configures the component to resizable.
public HorizontalSplitView Top(IComponent component, string background = "")Aligns the content of the component to the top.
public HorizontalSplitView Bottom(IComponent component, string background = "")Aligns the content of the component to the bottom.
public HorizontalSplitView PanelStyle()Renders the split view using the panel-style border treatment.
public HorizontalSplitView NotResizable()Disables resizing of the split view's handle.
public HorizontalSplitView SplitInMiddle()Splits the view exactly in the middle by default.
public HorizontalSplitView TopIsSmaller(UnitSize topSize, UnitSize maxTopSize = null, UnitSize minTopSize = null)Sizes the split view so the top pane is the smaller of the two, with optional min/max bounds.
public HorizontalSplitView BottomIsSmaller(UnitSize bottomSize, UnitSize maxBottomSize = null, UnitSize minBottomSize = null)Sizes the split view so the bottom pane is the smaller of the two, with optional min/max bounds.