Class SplitterElement
Represents a splitter element that provides a resizable divider between two panels or controls. This element includes visual splitter buttons for collapsing and expanding panels, and supports both horizontal and vertical orientations.
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
public class SplitterElement : RadItem, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IComponent, IDisposable, IBindableComponent, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode
Constructors
SplitterElement()
Declaration
public SplitterElement()
Fields
DockProperty
Identifies the Dock dependency property for the splitter element.
Declaration
public static RadProperty DockProperty
Field Value
RadProperty
|
HorizontalImageProperty
Identifies the HorizontalImage dependency property for the splitter element.
Declaration
public static RadProperty HorizontalImageProperty
Field Value
RadProperty
|
IsCollapsedProperty
Identifies the IsCollapsed dependency property for the splitter element.
Declaration
public static RadProperty IsCollapsedProperty
Field Value
RadProperty
|
IsVerticalProperty
Identifies the IsVertical dependency property for the splitter element.
Declaration
public static RadProperty IsVerticalProperty
Field Value
RadProperty
|
SplitterAlignmentProperty
Identifies the SplitterAlignment dependency property for the splitter element.
Declaration
public static RadProperty SplitterAlignmentProperty
Field Value
RadProperty
|
SplitterWidthProperty
Identifies the SplitterWidth dependency property for the splitter element.
Declaration
public static RadProperty SplitterWidthProperty
Field Value
RadProperty
|
VerticalImageProperty
Identifies the VerticalImage dependency property for the splitter element.
Declaration
public static RadProperty VerticalImageProperty
Field Value
RadProperty
|
Properties
BackgroundFill
Gets the background fill primitive element.
Declaration
public FillPrimitive BackgroundFill { get; }
Property Value
FillPrimitive
|
Border
Gets the border primitive element.
Declaration
public BorderPrimitive Border { get; }
Property Value
BorderPrimitive
|
DefaultCollapseDirection
Gets or sets the default collapse direction when using double click on the splitter element to collapse a panel. If you set Up/Down for Vertical splitter or Left/Right for Horizontal splitter, an System.ComponentModel.InvalidEnumArgumentException will be thrown when double click is fired.
Declaration
public RadDirection DefaultCollapseDirection { get; set; }
Property Value
RadDirection
|
Dock
Gets or sets the docking position of the splitter element.
Declaration
[RadDescription("Dock", typeof(DockStyle))]
[RadPropertyDefaultValue("Dock", typeof(SplitterElement))]
public DockStyle Dock { get; set; }
Property Value
System.Windows.Forms.DockStyle
|
Fixed
Gets or sets a value indicating whether the splitter is fixed and cannot be resized by the user.
Declaration
public bool Fixed { get; set; }
Property Value
System.Boolean
|
HorizontalImage
Gets or sets the image used by the splitter when in horizontal orientation.
Declaration
public RadImageShape HorizontalImage { get; set; }
Property Value
RadImageShape
|
IsCollapsed
Gets or sets a value indicating whether the splitter is currently collapsed.
Declaration
[RadDescription("IsCollapsed", typeof(bool))]
[RadPropertyDefaultValue("IsCollapsed", typeof(SplitterElement))]
public bool IsCollapsed { get; set; }
Property Value
System.Boolean
|
LastSplitterPosition
Gets or sets the last recorded position of the splitter.
Declaration
public int LastSplitterPosition { get; set; }
Property Value
System.Int32
|
Layout
Gets the layout element that manages the splitter's child elements.
Declaration
public SplitterElementLayout Layout { get; }
Property Value
SplitterElementLayout
|
LeftNode
Gets or sets the left node object associated with the splitter.
Declaration
public object LeftNode { get; set; }
Property Value
System.Object
|
NextArrow
Gets the next arrow primitive element.
Declaration
public ArrowPrimitive NextArrow { get; }
Property Value
ArrowPrimitive
|
NextNavigationButton
PrevArrow
Gets the previous arrow primitive element.
Declaration
public ArrowPrimitive PrevArrow { get; }
Property Value
ArrowPrimitive
|
PrevNavigationButton
RightNode
Gets or sets the right node object associated with the splitter.
Declaration
public object RightNode { get; set; }
Property Value
System.Object
|
SplitterAlignment
Gets or sets the alignment direction of the splitter.
Declaration
[RadDescription("SplitterAlignment", typeof(RadDirection))]
[RadPropertyDefaultValue("SplitterAlignment", typeof(SplitterElement))]
public RadDirection SplitterAlignment { get; set; }
Property Value
RadDirection
|
SplitterWidth
Gets or sets the width of the splitter element in pixels.
Declaration
[RadDescription("SplitterWidth", typeof(int))]
[RadPropertyDefaultValue("SplitterWidth", typeof(SplitterElement))]
public int SplitterWidth { get; set; }
Property Value
System.Int32
|
ThumbLength
Gets or sets the length of the splitter thumb buttons in pixels.
Declaration
public int ThumbLength { get; set; }
Property Value
System.Int32
|
VerticalImage
Gets or sets the image used by the splitter when in vertical orientation.
Declaration
public RadImageShape VerticalImage { get; set; }
Property Value
RadImageShape
|
Methods
CreateChildElements()
Creates the child elements that compose the splitter element.
Declaration
protected override void CreateChildElements()
Overrides
OnPropertyChanged(RadPropertyChangedEventArgs)
Handles property changes for the splitter element.
Declaration
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Parameters
RadPropertyChangedEventArgs
e
The event arguments containing property change information. |
Overrides
UpdateButtonsLayout()
Updates the layout of the splitter buttons based on the Fixed property.
Declaration
protected virtual void UpdateButtonsLayout()