Class RadPanelBar
Initializes a new instance of the RadTreeView class.
Inherited Members
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.Navigation.dll
Syntax
[TelerikToolboxCategory("Navigation")]
[Themable]
public class RadPanelBar : RadTreeView, IScrollingServiceCore, IScrollingInfo, IThemable
Remarks
The RadPanelBar control is used for displaying a list of items in an application and is often used for building collapsible side-menu interfaces. The RadPanelBar control has the following features:
Items
The RadPanelBar control is made up of a tree-like structure of items represented
by Rad
Each item has a Header and an Item property.
The value of the Header property is always visible in the RadPanelBar control whenever
a Rad
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.
Examples
The following example demonstrates how to programmatically create a RadPanelBar control.
void Page_Load(object sender, EventArgs e)
{
RadPanelBar myPanelBar = new RadPanelBar();
}
Fields
ExpandModeProperty
Identifies the ExpandMode dependency property.
Declaration
public static readonly DependencyProperty ExpandModeProperty
Field Value
System.
|
IsResizingEnabledProperty
Identifies the IsResizingEnabled dependency property.
Declaration
public static readonly DependencyProperty IsResizingEnabledProperty
Field Value
System.
|
IsScrollViewerInsideItemsEnabledProperty
Identifies the IsScrollViewerInsideItemsEnabled dependency property.
Declaration
public static readonly DependencyProperty IsScrollViewerInsideItemsEnabledProperty
Field Value
System.
|
OrientationChangedEvent
Occurs when orientation changes.
Declaration
public static readonly RoutedEvent OrientationChangedEvent
Field Value
System.
|
OrientationProperty
Identifies the Orientation dependency property.
Declaration
public static readonly DependencyProperty OrientationProperty
Field Value
System.
|
Properties
BringIntoViewMode
This property does not apply to RadPanelBar.
Declaration
public BringIntoViewMode BringIntoViewMode { get; set; }
Property Value
CheckedItems
This property does not apply to RadPanelBar.
Declaration
public ICollection<object> CheckedItems { get; }
Property Value
System.
|
ExpanderStyle
This property does not apply to RadPanelBar.
Declaration
public Style ExpanderStyle { get; set; }
Property Value
System.
|
ExpandMode
Gets or sets the expand mode.
Declaration
[SRDescription("PanelBarExpandModePropertyDescription")]
public ExpandMode ExpandMode { get; set; }
Property Value
Expand One of the Expand |
Remarks
Use the ExpandMode property to specify the way RadPanelBar should behave after an item is expanded. The available options are:
ImagesBaseDir
This property does not apply to RadPanelBar.
Declaration
public string ImagesBaseDir { get; set; }
Property Value
System.
|
IsDragDropEnabled
Gets or sets a value indicating whether drag and drop is enabled. This property is obsolete and will have not effect when set in future release.
Declaration
public bool IsDragDropEnabled { get; set; }
Property Value
System.
|
IsDropPreviewLineEnabled
This property does not apply to RadPanelBar.
Declaration
public bool IsDropPreviewLineEnabled { get; set; }
Property Value
System.
|
IsEditable
This property does not apply to RadPanelBar.
Declaration
public bool IsEditable { get; set; }
Property Value
System.
|
IsEditing
This property does not apply to RadPanelBar.
Declaration
public override bool IsEditing { get; }
Property Value
System.
|
Overrides
IsLineEnabled
This property does not apply to RadPanelBar.
Declaration
public bool IsLineEnabled { get; set; }
Property Value
System.
|
IsLoadOnDemandEnabled
This property does not apply to RadPanelBar.
Declaration
public bool IsLoadOnDemandEnabled { get; set; }
Property Value
System.
|
IsOptionElementsEnabled
This property does not apply to RadPanelBar.
Declaration
public bool IsOptionElementsEnabled { get; set; }
Property Value
System.
|
IsResizingEnabled
Gets or sets a value indicating whether top level RadPanelBarItems can be resized.
The default value is false
.
Declaration
public bool IsResizingEnabled { get; set; }
Property Value
System.
|
IsRootLinesEnabled
This property does not apply to RadPanelBar.
Declaration
public bool IsRootLinesEnabled { get; set; }
Property Value
System.
|
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
System.
|
IsTriStateMode
This property does not apply to RadPanelBar.
Declaration
public bool IsTriStateMode { get; set; }
Property Value
System.
|
IsVirtualizing
This property does not apply to RadPanelBar.
Declaration
public bool IsVirtualizing { get; set; }
Property Value
System.
|
ItemEditTemplate
This property does not apply to RadPanelBar.
Declaration
public DataTemplate ItemEditTemplate { get; set; }
Property Value
System.
|
ItemEditTemplateSelector
This property does not apply to RadPanelBar.
Declaration
public DataTemplateSelector ItemEditTemplateSelector { get; set; }
Property Value
System.
|
ItemsIndent
This property does not apply to RadPanelBar.
Declaration
public int ItemsIndent { get; set; }
Property Value
System.
|
ItemsOptionListType
This property does not apply to RadPanelBar.
Declaration
public OptionListType ItemsOptionListType { get; set; }
Property Value
Orientation
Gets or sets the orientation.
Declaration
public Orientation Orientation { get; set; }
Property Value
System. The orientation. |
PathSeparator
This property does not apply to RadPanelBar.
Declaration
public string PathSeparator { get; set; }
Property Value
System.
|
TextDropRoot
This property does not apply to RadPanelBar.
Declaration
public string TextDropRoot { get; set; }
Property Value
System.
|
Methods
add_EditCanceled(RadTreeViewItemEditedEventHandler)
Declaration
public void add_EditCanceled(RadTreeViewItemEditedEventHandler value)
Parameters
add_Edited(RadTreeViewItemEditedEventHandler)
Declaration
public void add_Edited(RadTreeViewItemEditedEventHandler value)
Parameters
add_EditStarted(RadTreeViewItemEditedEventHandler)
Declaration
public void add_EditStarted(RadTreeViewItemEditedEventHandler value)
Parameters
add_PreviewEditCanceled(RadTreeViewItemEditedEventHandler)
Declaration
public void add_PreviewEditCanceled(RadTreeViewItemEditedEventHandler value)
Parameters
add_PreviewEdited(RadTreeViewItemEditedEventHandler)
Declaration
public void add_PreviewEdited(RadTreeViewItemEditedEventHandler value)
Parameters
add_PreviewEditStarted(RadTreeViewItemEditedEventHandler)
Declaration
public void add_PreviewEditStarted(RadTreeViewItemEditedEventHandler value)
Parameters
AddItemByPath(String)
This method does not apply to RadPanelBar.
Declaration
public RadTreeViewItem AddItemByPath(string path)
Parameters
System.
|
Returns
AddItemsByPath(String, String)
This method does not apply to RadPanelBar.
Declaration
public RadTreeViewItem AddItemsByPath(string path, string separator)
Parameters
System.
|
System.
|
Returns
BringIndexIntoView(Int32)
This method does not apply to RadPanelBar.
Declaration
public void BringIndexIntoView(int index)
Parameters
System.
|
BringItemIntoView(Object)
This method does not apply to RadPanelBar.
Declaration
public void BringItemIntoView(object item)
Parameters
System.
|
BringPathIntoView(String)
This method does not apply to RadPanelBar.
Declaration
public void BringPathIntoView(string path)
Parameters
System.
|
ClearContainerForItemOverride(DependencyObject, Object)
When overridden in a derived class, undoes the effects of the System.
Declaration
protected override void ClearContainerForItemOverride(DependencyObject element, object item)
Parameters
System. The container element. |
System. The Item. |
Overrides
ExpandItemByPath(String)
This method does not apply to RadPanelBar.
Declaration
public void ExpandItemByPath(string path)
Parameters
System.
|
GetContainerForItemOverride()
Creates or identifies the element that is used to display the given item.
Declaration
protected override DependencyObject GetContainerForItemOverride()
Returns
System.
|
Overrides
GetItemByPath(String)
This method does not apply to RadPanelBar.
Declaration
public RadTreeViewItem GetItemByPath(string path)
Parameters
System.
|
Returns
HasSelectedItem()
Determines whether a Rad
Declaration
public bool HasSelectedItem()
Returns
System.
|
HideBetweenItemsDragCue()
This method does not apply to RadPanelBar.
Declaration
public void HideBetweenItemsDragCue()
IsItemItsOwnContainerOverride(Object)
Determines if the specified item is (or is eligible to be) its own container.
Declaration
protected override bool IsItemItsOwnContainerOverride(object item)
Parameters
System. The item to check. |
Returns
System. True if the item is (or is eligible to be) its own container; otherwise, false. |
Overrides
OnApplyTemplate()
When overridden in a derived class, is invoked whenever application
code or internal processes (such as a rebuilding layout pass) call
System.
Declaration
public override void OnApplyTemplate()
Overrides
OnCreateAutomationPeer()
Returns class-specific System.
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
System. The type-specific System. |
Overrides
OnExpandModeChanged(ExpandMode, ExpandMode)
Declaration
protected virtual void OnExpandModeChanged(ExpandMode oldValue, ExpandMode newValue)
Parameters
Expand
|
Expand
|
OnInitialized(EventArgs)
Raises the System.
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
System. The System. |
Overrides
OnOrientationChanged(OrientationChangedEventArgs)
Raises the Orientation
Declaration
protected virtual void OnOrientationChanged(OrientationChangedEventArgs e)
Parameters
Orientation The Orientation |
PrepareContainerForItemOverride(DependencyObject, Object)
Prepares the specified element to display the specified item.
Declaration
protected override void PrepareContainerForItemOverride(DependencyObject element, object item)
Parameters
System. Element used to display the specified item. |
System. Specified item. |
Overrides
remove_EditCanceled(RadTreeViewItemEditedEventHandler)
Declaration
public void remove_EditCanceled(RadTreeViewItemEditedEventHandler value)
Parameters
remove_Edited(RadTreeViewItemEditedEventHandler)
Declaration
public void remove_Edited(RadTreeViewItemEditedEventHandler value)
Parameters
remove_EditStarted(RadTreeViewItemEditedEventHandler)
Declaration
public void remove_EditStarted(RadTreeViewItemEditedEventHandler value)
Parameters
remove_PreviewEditCanceled(RadTreeViewItemEditedEventHandler)
Declaration
public void remove_PreviewEditCanceled(RadTreeViewItemEditedEventHandler value)
Parameters
remove_PreviewEdited(RadTreeViewItemEditedEventHandler)
Declaration
public void remove_PreviewEdited(RadTreeViewItemEditedEventHandler value)
Parameters
remove_PreviewEditStarted(RadTreeViewItemEditedEventHandler)
Declaration
public void remove_PreviewEditStarted(RadTreeViewItemEditedEventHandler value)
Parameters
SelectItemByPath(String)
This method does not apply to RadPanelBar.
Declaration
public void SelectItemByPath(string path)
Parameters
System.
|
ShowBetweenItemsDragCue(RadTreeViewItem)
This method does not apply to RadPanelBar.
Declaration
public void ShowBetweenItemsDragCue(RadTreeViewItem dropDestination)
Parameters
Rad
|
Events
Checked
This event does not apply to RadPanelBar.
Declaration
public event EventHandler<RadRoutedEventArgs> Checked
Event Type
System.
|
EditCanceled
This event does not apply to RadPanelBar.
Declaration
public event RadTreeViewItemEditedEventHandler EditCanceled
Event Type
Edited
This event does not apply to RadPanelBar.
Declaration
public event RadTreeViewItemEditedEventHandler Edited
Event Type
EditStarted
This event does not apply to RadPanelBar.
Declaration
public event RadTreeViewItemEditedEventHandler EditStarted
Event Type
LoadOnDemand
This event does not apply to RadPanelBar.
Declaration
public event EventHandler<RadRoutedEventArgs> LoadOnDemand
Event Type
System.
|
OrientationChanged
Occurs when orientation changes.
Declaration
public event EventHandler<OrientationChangedEventArgs> OrientationChanged
Event Type
System.
|
PreviewChecked
This event does not apply to RadPanelBar.
Declaration
public event EventHandler<RadRoutedEventArgs> PreviewChecked
Event Type
System.
|
PreviewEditCanceled
This event does not apply to RadPanelBar.
Declaration
public event RadTreeViewItemEditedEventHandler PreviewEditCanceled
Event Type
PreviewEdited
This event does not apply to RadPanelBar.
Declaration
public event RadTreeViewItemEditedEventHandler PreviewEdited
Event Type
PreviewEditStarted
This event does not apply to RadPanelBar.
Declaration
public event RadTreeViewItemEditedEventHandler PreviewEditStarted
Event Type
PreviewUnchecked
This event does not apply to RadPanelBar.
Declaration
public event EventHandler<RadRoutedEventArgs> PreviewUnchecked
Event Type
System.
|
Unchecked
This event does not apply to RadPanelBar.
Declaration
public event EventHandler<RadRoutedEventArgs> Unchecked
Event Type
System.
|