Class RadSplitContainer
Layout control that stacks pane items with splitters in-between. Not to be used outside RadDocking.
Inheritance
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.Docking.dll
Syntax
[TelerikToolboxCategory("Containers")]
public class RadSplitContainer : ItemsControl, ISplitItem, IDocumentHostAware, IToolWindowAware, IThemable, ISupportsResize
Constructors
RadSplitContainer()
Fields
InitialPositionProperty
Identifies the InitialPosition dependency property.
Declaration
public static readonly DependencyProperty InitialPositionProperty
Field Value
System.Windows.DependencyProperty
|
OrientationProperty
Identifies the OrientationProperty dependency property.
Declaration
public static readonly DependencyProperty OrientationProperty
Field Value
System.Windows.DependencyProperty
|
SplitterPositionProperty
Identifies the ResizerPosition property.
Declaration
public static readonly DependencyProperty SplitterPositionProperty
Field Value
System.Windows.DependencyProperty
|
Properties
Control
Gets the actual control that will be a visual child of the SplitContainer.
Declaration
public Control Control { get; }
Property Value
System.Windows.Controls.Control
|
Implements
InitialPosition
Gets or sets the initial position.
Declaration
public DockState InitialPosition { get; set; }
Property Value
DockState
The initial position. |
IsInDocumentHost
Gets a value indicating whether the object is contained within a DocumentHost.
Declaration
public bool IsInDocumentHost { get; }
Property Value
System.Boolean
|
IsInToolWindow
Gets a value indicating whether the object is contained within a ToolWindow.
Declaration
public bool IsInToolWindow { get; }
Property Value
System.Boolean
|
Orientation
Gets or sets the orientation.
Declaration
public Orientation Orientation { get; set; }
Property Value
System.Windows.Controls.Orientation
The orientation. |
ParentContainer
Gets or sets the SplitContainer that holds the item.
Declaration
public RadSplitContainer ParentContainer { get; }
Property Value
RadSplitContainer
The RadSplitContainer that contains the split container. |
Implements
SplitterPosition
Gets the position of the Resizer in the RadSplitContainer template.
Declaration
public Nullable<Dock> SplitterPosition { get; }
Property Value
System.Nullable<System.Windows.Controls.Dock>
|
Methods
AddItem(ISplitItem, DockPosition, ISplitItem)
Adds the item relative to another item.
Declaration
public void AddItem(ISplitItem item, DockPosition dockPosition, ISplitItem relativeTo)
Parameters
ISplitItem
item
The item to be added. |
DockPosition
dockPosition
The relative position at which the item will be added. |
ISplitItem
relativeTo
The item, relative to which the new one will be added. |
ChangeVisualState(Boolean)
Updates the visual states of the control.
Declaration
protected virtual void ChangeVisualState(bool useTransitions)
Parameters
System.Boolean
useTransitions
Identifies whether the transitions should be used. |
ClearContainerForItemOverride(DependencyObject, Object)
Clears the container for item override.
Declaration
protected override void ClearContainerForItemOverride(DependencyObject element, object item)
Parameters
System.Windows.DependencyObject
element
The element. |
System.Object
item
The item. |
EnumeratePanes()
Enumerates the panes contained by the split item and its children.
Declaration
public IEnumerable<RadPane> EnumeratePanes()
Returns
System.Collections.Generic.IEnumerable<RadPane>
|
Implements
GetContainerForItemOverride()
Gets the container for item override.
Declaration
protected override DependencyObject GetContainerForItemOverride()
Returns
System.Windows.DependencyObject
Ready for use container. |
GoToState(Boolean, String[])
Attempts to move the control to one of the states in the list.
Declaration
protected void GoToState(bool useTransitions, params string[] stateNames)
Parameters
System.Boolean
useTransitions
Indicates whether transitions should be used. |
System.String[]
stateNames
The names of the states that should be reached. |
IsItemItsOwnContainerOverride(Object)
Determines whether is the specified item its own container.
Declaration
protected override bool IsItemItsOwnContainerOverride(object item)
Parameters
System.Object
item
The item. |
Returns
System.Boolean
|
OnApplyTemplate()
When overridden in a derived class, is invoked whenever application code or internal processes call System.Windows.FrameworkElement.ApplyTemplate().
Declaration
public override void OnApplyTemplate()
OnCreateAutomationPeer()
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
System.Windows.Automation.Peers.AutomationPeer
|
OnInitialized(EventArgs)
Raises the System.Windows.FrameworkElement.Initialized event and sets System.Windows.FrameworkElement.DefaultStyleKey from the active theme.
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
System.EventArgs
e
The System.Windows.RoutedEventArgs that contains the event data. |
OnIsInDocumentHostChanged(Boolean, Boolean)
Called when the IsInDocumentHost property changes. Allows the control to change its appearance and behavior when placed in a DocumentHost.
Declaration
protected virtual void OnIsInDocumentHostChanged(bool oldValue, bool newValue)
Parameters
System.Boolean
oldValue
The old value of the property. |
System.Boolean
newValue
The new value of the property. |
OnIsInToolWindowChanged(Boolean, Boolean)
Called when the IToolWindowAware property changes. Allows the control to change its appearance and behavior when placed in a ToolWindow.
Declaration
protected virtual void OnIsInToolWindowChanged(bool oldValue, bool newValue)
Parameters
System.Boolean
oldValue
The old value of the property. |
System.Boolean
newValue
The new value of the property. |
OnItemsChanged(NotifyCollectionChangedEventArgs)
Raises the ItemsChanged event.
Declaration
protected override void OnItemsChanged(NotifyCollectionChangedEventArgs e)
Parameters
System.Collections.Specialized.NotifyCollectionChangedEventArgs
e
The System.Collections.Specialized.NotifyCollectionChangedEventArgs instance containing the event data. |
OnLoaded(Object, RoutedEventArgs)
Called when the Loaded event is fired.
Declaration
protected virtual void OnLoaded(object sender, RoutedEventArgs e)
Parameters
System.Object
sender
The sender. |
System.Windows.RoutedEventArgs
e
The System.Windows.RoutedEventArgs instance containing the event data. |
PrepareContainerForItemOverride(DependencyObject, Object)
Prepares the container for item override.
Declaration
protected override void PrepareContainerForItemOverride(DependencyObject element, object item)
Parameters
System.Windows.DependencyObject
element
The element. |
System.Object
item
The item. |
ResetTheme()
Resets the theme.
Declaration
public void ResetTheme()