RadPane
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
DependencyProperty
Identifies the AutoHideHeight dependency property.
public static readonly DependencyProperty AutoHideHeightProperty
AutoHideWidthProperty
DependencyProperty
Identifies the AutoHideWidth dependency property.
public static readonly DependencyProperty AutoHideWidthProperty
CanDockInDocumentHostProperty
DependencyProperty
Identifies the CanDockInDocumentHost dependency property.
public static readonly DependencyProperty CanDockInDocumentHostProperty
CanFloatProperty
DependencyProperty
Identifies the CanFloat dependency property.
public static readonly DependencyProperty CanFloatProperty
CanUserCloseProperty
DependencyProperty
Identifies the CanUserClose dependency property.
public static readonly DependencyProperty CanUserCloseProperty
CanUserPinProperty
DependencyProperty
Identifies the CanUserPin dependency property.
public static readonly DependencyProperty CanUserPinProperty
ContextMenuTemplateProperty
DependencyProperty
Identifies the ContextMenuTemplate dependency property.
public static readonly DependencyProperty ContextMenuTemplateProperty
DocumentHostTemplateProperty
DependencyProperty
Identifies the DocumentHostTemplate dependency property.
public static readonly DependencyProperty DocumentHostTemplateProperty
IsActiveProperty
DependencyProperty
Identifies the IsActive dependency property.
public static readonly DependencyProperty IsActiveProperty
IsDockableOptionCheckedProperty
DependencyProperty
Identifies the IsDockableOptionChecked property.
public static readonly DependencyProperty IsDockableOptionCheckedProperty
IsDockableProperty
DependencyProperty
Identifies the IsDockable dependency property.
public static readonly DependencyProperty IsDockableProperty
IsDraggingProperty
DependencyProperty
Identifies the IsDragging dependency property.
public static readonly DependencyProperty IsDraggingProperty
IsFloatingOnlyProperty
DependencyProperty
Identifies the IsFloatingOnly property.
public static readonly DependencyProperty IsFloatingOnlyProperty
IsFloatingProperty
DependencyProperty
Identifies the IsFloating property.
public static readonly DependencyProperty IsFloatingProperty
IsHiddenProperty
DependencyProperty
Identifies the IsHidden dependency property.
public static readonly DependencyProperty IsHiddenProperty
IsInDocumentHostProperty
DependencyProperty
Identifies the IsInDocumentHost property.
public static readonly DependencyProperty IsInDocumentHostProperty
IsLastInGroupProperty
DependencyProperty
Identifies the IsLastInGroup dependency property.
public static readonly DependencyProperty IsLastInGroupProperty
IsPinnedProperty
DependencyProperty
Identifies the IsPinned dependency property.
public static readonly DependencyProperty IsPinnedProperty
IsReorderingProperty
DependencyProperty
Identifies the IsReordering dependency property.
public static readonly DependencyProperty IsReorderingProperty
MenuCommandsProperty
DependencyProperty
Identifies the MenuCommands dependency property.
public static readonly DependencyProperty MenuCommandsProperty
MenuItemTemplateProperty
DependencyProperty
Identifies the MenuItemTemplate dependency property.
public static readonly DependencyProperty MenuItemTemplateProperty
MenuItemTemplateSelectorProperty
DependencyProperty
Identifies the MenuItemTemplateSelector dependency property.
public static readonly DependencyProperty MenuItemTemplateSelectorProperty
PaneHeaderVisibilityProperty
DependencyProperty
Identifies the PaneHeaderVisibility dependency property.
public static readonly DependencyProperty PaneHeaderVisibilityProperty
ParentDockingProperty
DependencyProperty
Identifies the CanUserPin ParentDocking property.
public static readonly DependencyProperty ParentDockingProperty
PinButtonVisibilityProperty
DependencyProperty
Identifies the PinButtonVisibility dependency property.
public static readonly DependencyProperty PinButtonVisibilityProperty
TitleProperty
DependencyProperty
Identifies the Title dependency property.
public static readonly DependencyProperty TitleProperty
TitleTemplateProperty
DependencyProperty
Identifies the TitleTemplate dependency property.
public static readonly DependencyProperty TitleTemplateProperty
Properties
Gets or sets the height of the auto hide.
public double AutoHideHeight { get; set; }
The height of the auto hide.
Gets or sets the width of the auto hide.
public double AutoHideWidth { get; set; }
The width of the auto hide.
Gets or sets a value indicating whether this instance can dock in the document host.
public bool CanDockInDocumentHost { get; set; }
True if this instance can dock in the document host; otherwise, false.
Gets or sets a value indicating whether this pane can float.
public bool CanFloat { get; set; }
True if this pane can float; otherwise, false.
Gets or sets a value indicating whether this instance can be closed by the user.
public bool CanUserClose { get; set; }
True if this instance can close; otherwise, False.
Gets or sets a value indicating whether this instance can be pinned by the user.
public bool CanUserPin { get; set; }
True if this instance can pin; otherwise, False.
ContextMenuTemplate
DataTemplate
Gets or sets Header's context menu that is containing the commands.
public DataTemplate ContextMenuTemplate { get; set; }
DocumentHostTemplate
ControlTemplate
Gets or sets the template that will be applied when the RadPane is placed in a DocumentHost. This is a dependency property.
public ControlTemplate DocumentHostTemplate { get; set; }
Gets or sets a value indicating whether this pane is active.
public bool IsActive { get; set; }
True if this pane is active; otherwise, false.
Implements:
Gets a value indicating whether this pane is dockable.
public bool IsDockable { get; set; }
True if this pane is dockable; otherwise, false.
Gets a value indicating whether this pane is floating and not dockable.
public bool IsDockableOptionChecked { get; }
True if this pane is floating and not dockable; otherwise, false.
Gets a value indicating whether this pane is floating.
public bool IsFloating { get; }
True if this pane is floating; otherwise, false.
Gets a value indicating whether this pane is floating and not dockable.
public bool IsFloatingOnly { get; }
True if this pane is floating and not dockable; otherwise, false.
Gets or sets a value indicating whether this instance is hidden.
public bool IsHidden { get; set; }
True if this instance is hidden; otherwise, False.
Gets a value indicating whether the object is contained within a DocumentHost.
public bool IsInDocumentHost { get; }
Gets a value indicating whether this instance is first in group.
public bool IsLastInGroup { get; }
True if this instance is first in group; otherwise, False.
Gets or sets a value indicating whether this instance is pinned.
public bool IsPinned { get; set; }
True if this instance is pinned; otherwise, False.
Gets the group that owns the pane.
public RadPaneGroup PaneGroup { get; }
PaneHeaderVisibility
Visibility
Gets or sets a value describing the visibility of the header of the pane.
public Visibility PaneHeaderVisibility { get; set; }
PinButtonVisibility
Visibility
Gets the visibility of the PinButton of this instance.
public Visibility PinButtonVisibility { get; }
Gets or sets the title of the RadPane. This is a dependency property.
public object Title { get; set; }
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
DataTemplate
Gets or sets the title template.
public DataTemplate TitleTemplate { get; set; }
The title template.
Methods
Updates the visual state of the control.
protected override void ChangeVisualState(bool useTransitions)
Indicates whether transitions should be used.
Overrides:
FindTemplateFromPosition(Dock)
ControlTemplate
Returns the template that will be used, based on the position of the TabStrip.
protected override ControlTemplate FindTemplateFromPosition(Dock position)
The position for which to return a template.
Returns:ControlTemplate
A control template to use.
Overrides:
Makes the pane dockable.
public void MakeDockable()
Makes the pane floating dockable.
public void MakeFloatingDockable()
Makes the pane floating and not dockable.
public void MakeFloatingOnly()
Moves the pane to the document host.
public void MoveToDocumentHost()
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().
public override void OnApplyTemplate()
Overrides:
Update the RadPanes' context menu.
protected virtual void OnContextMenuTemplateChanged()
Occurs when the input system reports an underlying drop event with this element as the drag origin.
protected virtual void OnDragDropCompleted(object sender, DragDropCompletedEventArgs e)
Responds to a change in the value of the IsDragging property.
protected virtual void OnDraggingChanged(DependencyPropertyChangedEventArgs eventArgs)
The event data.
Occurs when the input system reports an underlying drag event with this element as the drag origin.
protected virtual void OnDragInitialize(object sender, DragInitializeEventArgs e)
Raises the event.
protected override void OnHeaderMouseLeftButtonDown(object sender, MouseButtonEventArgs e)
The sender.
eMouseButtonEventArgsThe MouseButtonEventArgs instance containing the event data.
Overrides:
Raises the event and sets from the active theme.
protected override void OnInitialized(EventArgs e)
The RoutedEventArgs that contains the event data.
Overrides:
Occurs when IsActive property is changed.
protected virtual void OnIsActiveChanged()
Raises the event.
protected override void OnMouseEnter(MouseEventArgs e)
The MouseEventArgs instance containing the event data.
Overrides:
Raises the event.
protected override void OnMouseLeave(MouseEventArgs e)
The MouseEventArgs instance containing the event data.
Overrides:
Raises the event.
protected virtual void OnStateChange(RadRoutedEventArgs routedEventArgs)
The RadRoutedEventArgs instance containing the event data.
Removes from parent.
public void RemoveFromParent()
Events
Occurs when the RadPane is activated.
public event EventHandler<EventArgs> Activated
Implements:
Occurs when the RadPane is deactivated.
public event EventHandler<EventArgs> Deactivated
Implements: