ClassRadPanelBar
Initializes a new instance of the RadTreeView class.
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
RadPanelBar()
Initializes a new instance of the RadPanelBar class.
Declaration
public RadPanelBar()
Remarks
Use this constructor to create and initialize a new instance of the RadPanelBar control.
Fields
ExpandModeProperty
Identifies the ExpandMode dependency property.
Declaration
public static readonly DependencyProperty ExpandModeProperty
Field Value
DependencyProperty
IsResizingEnabledProperty
Identifies the IsResizingEnabled dependency property.
Declaration
public static readonly DependencyProperty IsResizingEnabledProperty
Field Value
DependencyProperty
IsScrollViewerInsideItemsEnabledProperty
Identifies the IsScrollViewerInsideItemsEnabled dependency property.
Declaration
public static readonly DependencyProperty IsScrollViewerInsideItemsEnabledProperty
Field Value
DependencyProperty
OrientationChangedEvent
Occurs when orientation changes.
Declaration
public static readonly RoutedEvent OrientationChangedEvent
Field Value
RoutedEvent
OrientationProperty
Identifies the Orientation dependency property.
Declaration
public static readonly DependencyProperty OrientationProperty
Field Value
DependencyProperty
Properties
ExpandMode
Gets or sets the expand mode.
Declaration
[SRDescription("PanelBarExpandModePropertyDescription")]
[Browsable(true)]
public ExpandMode ExpandMode { get; set; }
Property Value
One of the ExpandMode values. The default value is Single.
Remarks
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.
IsResizingEnabled
Gets or sets a value indicating whether top level RadPanelBarItems can be resized.
The default value is false.
IsScrollViewerInsideItemsEnabled
Gets or sets a value that controls the ScrollBarVisibility of the ScrollViewer inside the ControlTemplate of the RadPanelBarItems.
The default value is false.
Declaration
public bool IsScrollViewerInsideItemsEnabled { get; set; }
Property Value
Orientation
Gets or sets the orientation.
Declaration
public Orientation Orientation { get; set; }
Property Value
Orientation
The orientation.
Methods
ClearContainerForItemOverride(DependencyObject, object)
When overridden in a derived class, undoes the effects of the method.
Declaration
protected override void ClearContainerForItemOverride(DependencyObject element, object item)
Parameters
element
DependencyObject
The container element.
item
The Item.
Overrides
GetContainerForItemOverride()
Creates or identifies the element that is used to display the given item.
Declaration
protected override DependencyObject GetContainerForItemOverride()
Returns
DependencyObject
Overrides
HasSelectedItem()
Determines whether a RadPanelBar has a selected item.
Declaration
public bool HasSelectedItem()
Returns
true if the RadPanelBar has a selected item; otherwise, false.
IsItemItsOwnContainerOverride(object)
Determines if the specified item is (or is eligible to be) its own container.
OnApplyTemplate()
When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call .
Declaration
public override void OnApplyTemplate()
Overrides
OnCreateAutomationPeer()
Returns class-specific AutomationPeer.
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
AutomationPeer
The type-specific AutomationPeer implementation.
Overrides
OnExpandModeChanged(ExpandMode, ExpandMode)
Called when the ExpandMode is changed.
Declaration
protected virtual void OnExpandModeChanged(ExpandMode oldValue, ExpandMode newValue)
Parameters
oldValue
newValue
OnInitialized(EventArgs)
Raises the event. This method is invoked whenever is set to true internally.
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
e
The RoutedEventArgs that contains the event data.
Overrides
OnOrientationChanged(OrientationChangedEventArgs)
Raises the event.
Declaration
protected virtual void OnOrientationChanged(OrientationChangedEventArgs e)
Parameters
e
The OrientationChangedEventArgs instance containing the event data.
PrepareContainerForItemOverride(DependencyObject, object)
Prepares the specified element to display the specified item.
Declaration
protected override void PrepareContainerForItemOverride(DependencyObject element, object item)
Parameters
element
DependencyObject
Element used to display the specified item.
item
Specified item.
Overrides
Events
OrientationChanged
Occurs when orientation changes.
Declaration
public event EventHandler<OrientationChangedEventArgs> OrientationChanged
Event Value