RadPanelBar
A navigation control used for building collapsible side-menu systems and Outlook-type panels.
Definition
Namespace:Telerik.Windows.Controls
Assembly:Telerik.Windows.Controls.Navigation.dll
Syntax:
[TelerikToolboxCategory("Navigation")]
[Themable]
public class RadPanelBar : RadTreeView, IScrollingServiceCore, IScrollingInfo
Inheritance: objectRadTreeViewRadPanelBar
Implements:
Inherited Members
Constructors
Initializes a new instance of the RadPanelBar class.
public RadPanelBar()
Use this constructor to create and initialize a new instance of the RadPanelBar control.
Fields
ExpandModeProperty
DependencyProperty
Identifies the ExpandMode dependency property.
public static readonly DependencyProperty ExpandModeProperty
IsResizingEnabledProperty
DependencyProperty
Identifies the IsResizingEnabled dependency property.
public static readonly DependencyProperty IsResizingEnabledProperty
IsScrollViewerInsideItemsEnabledProperty
DependencyProperty
Identifies the IsScrollViewerInsideItemsEnabled dependency property.
public static readonly DependencyProperty IsScrollViewerInsideItemsEnabledProperty
OrientationChangedEvent
RoutedEvent
Occurs when orientation changes.
public static readonly RoutedEvent OrientationChangedEvent
OrientationProperty
DependencyProperty
Identifies the Orientation dependency property.
public static readonly DependencyProperty OrientationProperty
Properties
Gets or sets the expand mode.
[SRDescription("PanelBarExpandModePropertyDescription")]
[Browsable(true)]
public ExpandMode ExpandMode { get; set; }
One of the ExpandMode values. The default value is Single.
Use the ExpandMode property to specify the way RadPanelBar should behave after an item is expanded. The available options are:
- Single (default) - Only one item can be expanded at a time. Expanding another item collapses the previously expanded one.
- Multiple - More than one item can be expanded at a time.
Gets or sets a value indicating whether top level RadPanelBarItems can be resized.
The default value is false.
public bool IsResizingEnabled { get; set; }
Gets or sets a value that controls the ScrollBarVisibility of the ScrollViewer inside the ControlTemplate of the RadPanelBarItems.
The default value is false.
public bool IsScrollViewerInsideItemsEnabled { get; set; }
Orientation
Orientation
Gets or sets the orientation.
public Orientation Orientation { get; set; }
The orientation.
Methods
When overridden in a derived class, undoes the effects of the method.
protected override void ClearContainerForItemOverride(DependencyObject element, object item)
The container element.
itemobjectThe Item.
Overrides:
GetContainerForItemOverride()
DependencyObject
Creates or identifies the element that is used to display the given item.
protected override DependencyObject GetContainerForItemOverride()
DependencyObject
Overrides:
Determines whether a RadPanelBar has a selected item.
public bool HasSelectedItem()
true if the RadPanelBar has a selected item; otherwise, false.
When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call .
public override void OnApplyTemplate()
Overrides:
OnCreateAutomationPeer()
AutomationPeer
Returns class-specific AutomationPeer.
protected override AutomationPeer OnCreateAutomationPeer()
AutomationPeer
The type-specific AutomationPeer implementation.
Overrides:
Called when the ExpandMode is changed.
protected virtual void OnExpandModeChanged(ExpandMode oldValue, ExpandMode newValue)
Raises the event. This method is invoked whenever is set to true internally.
protected override void OnInitialized(EventArgs e)
The RoutedEventArgs that contains the event data.
Overrides:
Raises the event.
protected virtual void OnOrientationChanged(OrientationChangedEventArgs e)
The OrientationChangedEventArgs instance containing the event data.
Prepares the specified element to display the specified item.
protected override void PrepareContainerForItemOverride(DependencyObject element, object item)
Element used to display the specified item.
itemobjectSpecified item.
Overrides:
Events
Occurs when orientation changes.
public event EventHandler<OrientationChangedEventArgs> OrientationChanged