RadSplitContainer
Represents a split container that can hold multiple items in a resizable layout. The RadSplitContainer can be oriented either horizontally or vertically, allowing for flexible layouts in user interfaces. It supports docking of child items and includes functionality for managing the visibility and arrangement of its child components. This class also implements several interfaces for enhanced behavior in document hosts and tool windows, providing theming capabilities and supporting resize operations.
Definition
Namespace:Telerik.Windows.Controls
Assembly:Telerik.Windows.Controls.Docking.dll
Syntax:
[TelerikToolboxCategory("Containers")]
public class RadSplitContainer : ItemsControl, ISplitItem
Inheritance: objectRadSplitContainer
Implements:
Constructors
Initializes a new instance of the RadSplitContainer class.
public RadSplitContainer()
Fields
InitialPositionProperty
DependencyProperty
Identifies the InitialPosition dependency property.
public static readonly DependencyProperty InitialPositionProperty
OrientationProperty
DependencyProperty
Identifies the OrientationProperty dependency property.
public static readonly DependencyProperty OrientationProperty
SplitterPositionProperty
DependencyProperty
Identifies the ResizerPosition property.
public static readonly DependencyProperty SplitterPositionProperty
Properties
Control
Control
Gets the actual control that will be a visual child of the SplitContainer.
public Control Control { get; }
Implements:
Gets or sets the initial position.
public DockState InitialPosition { get; set; }
The initial position.
Gets a value indicating whether the object is contained within a DocumentHost.
public bool IsInDocumentHost { get; }
Gets a value indicating whether the object is contained within a ToolWindow.
public bool IsInToolWindow { get; }
Orientation
Orientation
Gets or sets the orientation.
public Orientation Orientation { get; set; }
The orientation.
Gets or sets the SplitContainer that holds the item.
public RadSplitContainer ParentContainer { get; }
The RadSplitContainer that contains the split container.
Implements:
SplitterPosition
Dock?
Gets the position of the Resizer in the RadSplitContainer template.
public Dock? SplitterPosition { get; }
Methods
Adds the item relative to another item.
public void AddItem(ISplitItem item, DockPosition dockPosition, ISplitItem relativeTo)
The item to be added.
dockPositionDockPositionThe relative position at which the item will be added.
relativeToISplitItemThe item, relative to which the new one will be added.
Updates the visual states of the control.
protected virtual void ChangeVisualState(bool useTransitions)
Identifies whether the transitions should be used.
Clears the container for item override.
protected override void ClearContainerForItemOverride(DependencyObject element, object item)
The element.
itemobjectThe item.
Enumerates the panes contained by the split item and its children.
GetContainerForItemOverride()
DependencyObject
Gets the container for item override.
protected override DependencyObject GetContainerForItemOverride()
DependencyObject
Ready for use container.
When overridden in a derived class, is invoked whenever application code or internal processes call System.Windows.FrameworkElement.ApplyTemplate().
public override void OnApplyTemplate()
OnCreateAutomationPeer()
AutomationPeer
protected override AutomationPeer OnCreateAutomationPeer()
AutomationPeer
Raises the event and sets from the active theme.
protected override void OnInitialized(EventArgs e)
The RoutedEventArgs that contains the event data.
Called when the IsInDocumentHost property changes. Allows the control to change its appearance and behavior when placed in a DocumentHost.
Called when the IToolWindowAware property changes. Allows the control to change its appearance and behavior when placed in a ToolWindow.
Raises the event.
protected override void OnItemsChanged(NotifyCollectionChangedEventArgs e)
The NotifyCollectionChangedEventArgs instance containing the event data.
Called when the event is fired.
protected virtual void OnLoaded(object sender, RoutedEventArgs e)
The sender.
eRoutedEventArgsThe RoutedEventArgs instance containing the event data.
Prepares the container for item override.
protected override void PrepareContainerForItemOverride(DependencyObject element, object item)
The element.
itemobjectThe item.
Resets the theme.
public void ResetTheme()