ClassRadPane
Represents a pane control that can be pinned, docked, or floated within a RadDocking layout. The RadPane class inherits from RadTabItem and implements multiple interfaces such as IPane, IDocumentHostAware, IToolWindowAware, IActiveAware, and IActiveAwareExtended. It provides support for visual states, including Normal, Selected, MouseOver, Disabled, Focused, and others, allowing for extensive customization of its behavior and appearance.
The RadPane includes properties for managing its active state, hidden state and pinned state. It also supports context menus and provides events to handle activation and deactivation, making it ideal for complex UI scenarios such as tabbed interfaces, tool windows, and document hosts.
Definition
Namespace:Telerik.Windows.Controls
Assembly:Telerik.Windows.Controls.Docking.dll
Syntax:
[TelerikToolboxCategory("Containers")]
public class RadPane : RadTabItem, IRadTabItem, IActiveAware
Inheritance: objectRadTabItemRadPane
Derived Classes:
Implements:
Inherited Members
Constructors
Fields
AutoHideHeightProperty
Identifies the AutoHideHeight dependency property.
Declaration
public static readonly DependencyProperty AutoHideHeightProperty
Field Value
DependencyProperty
AutoHideWidthProperty
Identifies the AutoHideWidth dependency property.
Declaration
public static readonly DependencyProperty AutoHideWidthProperty
Field Value
DependencyProperty
CanDockInDocumentHostProperty
Identifies the CanDockInDocumentHost dependency property.
Declaration
public static readonly DependencyProperty CanDockInDocumentHostProperty
Field Value
DependencyProperty
CanFloatProperty
Identifies the CanFloat dependency property.
Declaration
public static readonly DependencyProperty CanFloatProperty
Field Value
DependencyProperty
CanUserCloseProperty
Identifies the CanUserClose dependency property.
Declaration
public static readonly DependencyProperty CanUserCloseProperty
Field Value
DependencyProperty
CanUserPinProperty
Identifies the CanUserPin dependency property.
Declaration
public static readonly DependencyProperty CanUserPinProperty
Field Value
DependencyProperty
ContextMenuTemplateProperty
Identifies the ContextMenuTemplate dependency property.
Declaration
public static readonly DependencyProperty ContextMenuTemplateProperty
Field Value
DependencyProperty
DocumentHostTemplateProperty
Identifies the DocumentHostTemplate dependency property.
Declaration
public static readonly DependencyProperty DocumentHostTemplateProperty
Field Value
DependencyProperty
IsActiveProperty
Identifies the IsActive dependency property.
Declaration
public static readonly DependencyProperty IsActiveProperty
Field Value
DependencyProperty
IsDockableOptionCheckedProperty
Identifies the IsDockableOptionChecked property.
Declaration
public static readonly DependencyProperty IsDockableOptionCheckedProperty
Field Value
DependencyProperty
IsDockableProperty
Identifies the IsDockable dependency property.
Declaration
public static readonly DependencyProperty IsDockableProperty
Field Value
DependencyProperty
IsDraggingProperty
Identifies the IsDragging dependency property.
Declaration
public static readonly DependencyProperty IsDraggingProperty
Field Value
DependencyProperty
IsFloatingOnlyProperty
Identifies the IsFloatingOnly property.
Declaration
public static readonly DependencyProperty IsFloatingOnlyProperty
Field Value
DependencyProperty
IsFloatingProperty
Identifies the IsFloating property.
Declaration
public static readonly DependencyProperty IsFloatingProperty
Field Value
DependencyProperty
IsHiddenProperty
Identifies the IsHidden dependency property.
Declaration
public static readonly DependencyProperty IsHiddenProperty
Field Value
DependencyProperty
IsInDocumentHostProperty
Identifies the IsInDocumentHost property.
Declaration
public static readonly DependencyProperty IsInDocumentHostProperty
Field Value
DependencyProperty
IsLastInGroupProperty
Identifies the IsLastInGroup dependency property.
Declaration
public static readonly DependencyProperty IsLastInGroupProperty
Field Value
DependencyProperty
IsPinnedProperty
Identifies the IsPinned dependency property.
Declaration
public static readonly DependencyProperty IsPinnedProperty
Field Value
DependencyProperty
IsReorderingProperty
Identifies the IsReordering dependency property.
Declaration
public static readonly DependencyProperty IsReorderingProperty
Field Value
DependencyProperty
MenuCommandsProperty
Identifies the MenuCommands dependency property.
Declaration
public static readonly DependencyProperty MenuCommandsProperty
Field Value
DependencyProperty
MenuItemTemplateProperty
Identifies the MenuItemTemplate dependency property.
Declaration
public static readonly DependencyProperty MenuItemTemplateProperty
Field Value
DependencyProperty
MenuItemTemplateSelectorProperty
Identifies the MenuItemTemplateSelector dependency property.
Declaration
public static readonly DependencyProperty MenuItemTemplateSelectorProperty
Field Value
DependencyProperty
PaneHeaderVisibilityProperty
Identifies the PaneHeaderVisibility dependency property.
Declaration
public static readonly DependencyProperty PaneHeaderVisibilityProperty
Field Value
DependencyProperty
ParentDockingProperty
Identifies the CanUserPin ParentDocking property.
Declaration
public static readonly DependencyProperty ParentDockingProperty
Field Value
DependencyProperty
PinButtonVisibilityProperty
Identifies the PinButtonVisibility dependency property.
Declaration
public static readonly DependencyProperty PinButtonVisibilityProperty
Field Value
DependencyProperty
TitleProperty
Identifies the Title dependency property.
Declaration
public static readonly DependencyProperty TitleProperty
Field Value
DependencyProperty
TitleTemplateProperty
Identifies the TitleTemplate dependency property.
Declaration
public static readonly DependencyProperty TitleTemplateProperty
Field Value
DependencyProperty
Properties
AutoHideHeight
Gets or sets the height of the auto hide.
Declaration
public double AutoHideHeight { get; set; }
Property Value
The height of the auto hide.
AutoHideWidth
Gets or sets the width of the auto hide.
Declaration
public double AutoHideWidth { get; set; }
Property Value
The width of the auto hide.
CanDockInDocumentHost
Gets or sets a value indicating whether this instance can dock in the document host.
Declaration
public bool CanDockInDocumentHost { get; set; }
Property Value
True if this instance can dock in the document host; otherwise, false.
CanFloat
Gets or sets a value indicating whether this pane can float.
Declaration
public bool CanFloat { get; set; }
Property Value
True if this pane can float; otherwise, false.
CanUserClose
Gets or sets a value indicating whether this instance can be closed by the user.
Declaration
public bool CanUserClose { get; set; }
Property Value
True if this instance can close; otherwise, False.
CanUserPin
Gets or sets a value indicating whether this instance can be pinned by the user.
Declaration
public bool CanUserPin { get; set; }
Property Value
True if this instance can pin; otherwise, False.
ContextMenuTemplate
Gets or sets Header's context menu that is containing the commands.
Declaration
public DataTemplate ContextMenuTemplate { get; set; }
Property Value
DataTemplate
DocumentHostTemplate
Gets or sets the template that will be applied when the RadPane is placed in a DocumentHost. This is a dependency property.
Declaration
public ControlTemplate DocumentHostTemplate { get; set; }
Property Value
ControlTemplate
IsActive
Gets or sets a value indicating whether this pane is active.
Declaration
public bool IsActive { get; set; }
Property Value
True if this pane is active; otherwise, false.
Implements
IsDockable
Gets a value indicating whether this pane is dockable.
Declaration
public bool IsDockable { get; set; }
Property Value
True if this pane is dockable; otherwise, false.
IsDockableOptionChecked
Gets a value indicating whether this pane is floating and not dockable.
Declaration
public bool IsDockableOptionChecked { get; }
Property Value
True if this pane is floating and not dockable; otherwise, false.
IsDragging
Gets whether the RadPane control has logical focus and mouse capture and the left mouse button is pressed.
IsFloating
Gets a value indicating whether this pane is floating.
Declaration
public bool IsFloating { get; }
Property Value
True if this pane is floating; otherwise, false.
IsFloatingOnly
Gets a value indicating whether this pane is floating and not dockable.
Declaration
public bool IsFloatingOnly { get; }
Property Value
True if this pane is floating and not dockable; otherwise, false.
IsHidden
Gets or sets a value indicating whether this instance is hidden.
Declaration
public bool IsHidden { get; set; }
Property Value
True if this instance is hidden; otherwise, False.
IsInDocumentHost
Gets a value indicating whether the object is contained within a DocumentHost.
IsLastInGroup
Gets a value indicating whether this instance is first in group.
Declaration
public bool IsLastInGroup { get; }
Property Value
True if this instance is first in group; otherwise, False.
IsPinned
Gets or sets a value indicating whether this instance is pinned.
Declaration
public bool IsPinned { get; set; }
Property Value
True if this instance is pinned; otherwise, False.
IsReordering
Gets whether the RadPane control is currently reordering.
PaneGroup
Gets the group that owns the pane.
PaneHeaderVisibility
Gets or sets a value describing the visibility of the header of the pane.
Declaration
public Visibility PaneHeaderVisibility { get; set; }
Property Value
Visibility
PinButtonVisibility
Gets the visibility of the PinButton of this instance.
Declaration
[SuppressMessage("Microsoft.Usage", "CA2222:DoNotDecreaseInheritedMemberVisibility")]
public Visibility PinButtonVisibility { get; }
Property Value
Visibility
Title
Gets or sets the title of the RadPane. This is a dependency property.
Declaration
public object Title { get; set; }
Property Value
Remarks
The title of the RadPane appears in the top header part of the pane, while its header is the content of its tab button.
TitleTemplate
Gets or sets the title template.
Declaration
public DataTemplate TitleTemplate { get; set; }
Property Value
DataTemplate
The title template.
Methods
ChangeVisualState(bool)
Updates the visual state of the control.
Declaration
protected override void ChangeVisualState(bool useTransitions)
Parameters
useTransitions
Indicates whether transitions should be used.
Overrides
FindTemplateFromPosition(Dock)
Returns the template that will be used, based on the position of the TabStrip.
Declaration
protected override ControlTemplate FindTemplateFromPosition(Dock position)
Parameters
position
Dock
The position for which to return a template.
Returns
ControlTemplate
A control template to use.
Overrides
MakeFloatingDockable()
Makes the pane floating dockable.
Declaration
public void MakeFloatingDockable()
MakeFloatingOnly()
Makes the pane floating and not dockable.
Declaration
public void MakeFloatingOnly()
MoveToDocumentHost()
Moves the pane to the document host.
Declaration
public void MoveToDocumentHost()
OnApplyTemplate()
When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call System.Windows.Controls.Control.ApplyTemplate().
Declaration
public override void OnApplyTemplate()
Overrides
OnContextMenuTemplateChanged()
Update the RadPanes' context menu.
Declaration
protected virtual void OnContextMenuTemplateChanged()
OnDragDropCompleted(object, DragDropCompletedEventArgs)
Occurs when the input system reports an underlying drop event with this element as the drag origin.
Declaration
protected virtual void OnDragDropCompleted(object sender, DragDropCompletedEventArgs e)
Parameters
sender
e
OnDragInitialize(object, DragInitializeEventArgs)
Occurs when the input system reports an underlying drag event with this element as the drag origin.
Declaration
protected virtual void OnDragInitialize(object sender, DragInitializeEventArgs e)
Parameters
sender
e
OnDraggingChanged(DependencyPropertyChangedEventArgs)
Responds to a change in the value of the IsDragging property.
Declaration
protected virtual void OnDraggingChanged(DependencyPropertyChangedEventArgs eventArgs)
Parameters
eventArgs
DependencyPropertyChangedEventArgs
The event data.
OnHeaderMouseLeftButtonDown(object, MouseButtonEventArgs)
Raises the event.
Declaration
protected override void OnHeaderMouseLeftButtonDown(object sender, MouseButtonEventArgs e)
Parameters
sender
The sender.
e
MouseButtonEventArgs
The MouseButtonEventArgs instance containing the event data.
Overrides
OnInitialized(EventArgs)
Raises the event and sets from the active theme.
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
e
The RoutedEventArgs that contains the event data.
Overrides
OnIsActiveChanged()
Occurs when IsActive property is changed.
Declaration
protected virtual void OnIsActiveChanged()
OnMouseEnter(MouseEventArgs)
Raises the event.
Declaration
protected override void OnMouseEnter(MouseEventArgs e)
Parameters
e
MouseEventArgs
The MouseEventArgs instance containing the event data.
Overrides
OnMouseLeave(MouseEventArgs)
Raises the event.
Declaration
protected override void OnMouseLeave(MouseEventArgs e)
Parameters
e
MouseEventArgs
The MouseEventArgs instance containing the event data.
Overrides
OnStateChange(RadRoutedEventArgs)
Raises the event.
Declaration
protected virtual void OnStateChange(RadRoutedEventArgs routedEventArgs)
Parameters
routedEventArgs
The RadRoutedEventArgs instance containing the event data.
Events
Activated
Occurs when the RadPane is activated.
Declaration
public event EventHandler<EventArgs> Activated
Event Value
Implements
Deactivated
Occurs when the RadPane is deactivated.
Declaration
public event EventHandler<EventArgs> Deactivated
Event Value
Implements