Class RadNavigationViewItem
Inheritance
System.Object
RadNavigationViewItem
Assembly: Telerik.Windows.Controls.Navigation.dll
Syntax
[TelerikToolboxCategory("Navigation")]
public class RadNavigationViewItem : ButtonBase, IThemable
Constructors
Declaration
public RadNavigationViewItem()
Fields
Declaration
public static readonly DependencyProperty CalculatedItemIndentationProperty
Field Value
System.Windows.DependencyProperty
|
Declaration
public static readonly RoutedEvent CollapsedEvent
Field Value
System.Windows.RoutedEvent
|
Declaration
public static readonly DependencyProperty CollapsedIconProperty
Field Value
System.Windows.DependencyProperty
|
Declaration
public static readonly DependencyProperty CollapsedIconTemplateProperty
Field Value
System.Windows.DependencyProperty
|
Declaration
public static readonly DependencyProperty DisplayMemberPathProperty
Field Value
System.Windows.DependencyProperty
|
Declaration
public static readonly RoutedEvent ExpandedEvent
Field Value
System.Windows.RoutedEvent
|
Declaration
public static readonly DependencyProperty ExpandedIconProperty
Field Value
System.Windows.DependencyProperty
|
Declaration
public static readonly DependencyProperty ExpandedIconTemplateProperty
Field Value
System.Windows.DependencyProperty
|
Declaration
public static readonly DependencyProperty HasSelectedSubItemProperty
Field Value
System.Windows.DependencyProperty
|
Identifies the Icon dependency property.
Declaration
public static readonly DependencyProperty IconProperty
Field Value
System.Windows.DependencyProperty
|
Declaration
public static readonly DependencyProperty IconTemplateProperty
Field Value
System.Windows.DependencyProperty
|
Declaration
public static readonly DependencyProperty IconTemplateSelectorProperty
Field Value
System.Windows.DependencyProperty
|
Declaration
public static readonly DependencyProperty IconVisibilityProperty
Field Value
System.Windows.DependencyProperty
|
Declaration
public static readonly DependencyProperty IsExpandedProperty
Field Value
System.Windows.DependencyProperty
|
Declaration
public static readonly DependencyProperty IsHighlightedProperty
Field Value
System.Windows.DependencyProperty
|
Declaration
public static readonly DependencyProperty IsSelectableProperty
Field Value
System.Windows.DependencyProperty
|
Declaration
public static readonly DependencyProperty IsSelectedProperty
Field Value
System.Windows.DependencyProperty
|
Declaration
public static readonly DependencyProperty ItemContainerStyleProperty
Field Value
System.Windows.DependencyProperty
|
Declaration
public static readonly DependencyProperty ItemsSourceProperty
Field Value
System.Windows.DependencyProperty
|
Declaration
public static readonly DependencyProperty ItemTemplateProperty
Field Value
System.Windows.DependencyProperty
|
Properties
Gets the calculated indentation length for the level of the NavigationViewItem.
Declaration
public double CalculatedItemIndentation { get; }
Property Value
Gets or sets the icon that is displayed when the RadNavigationViewItem is in collapsed state. This is a dependency property.
Declaration
[SRCategory("Appearance")]
public object CollapsedIcon { get; set; }
Property Value
Gets or sets the data template used for icon when the RadNavigationViewItem is in collapsed state. This is a dependency property.
Declaration
[SRCategory("Appearance")]
public DataTemplate CollapsedIconTemplate { get; set; }
Property Value
System.Windows.DataTemplate
|
Gets or sets a path to a value on the source object to serve as the visual representation of the object.
Declaration
public string DisplayMemberPath { get; set; }
Property Value
Gets or sets the icon that is displayed when the RadNavigationViewItem is in expanded state. This is a dependency property.
Declaration
[SRCategory("Appearance")]
public object ExpandedIcon { get; set; }
Property Value
Gets or sets the data template used for icon when the RadNavigationViewItem is in expanded state. This is a dependency property.
Declaration
[SRCategory("Appearance")]
public DataTemplate ExpandedIconTemplate { get; set; }
Property Value
System.Windows.DataTemplate
|
Gets or sets a value indicating whether the RadNavigationViewItem has selected sub item on any sub level. This is a dependency property.
Declaration
public bool HasSelectedSubItem { get; set; }
Property Value
Declaration
[SRCategory("Appearance")]
public object Icon { get; set; }
Property Value
Declaration
[SRCategory("Appearance")]
public DataTemplate IconTemplate { get; set; }
Property Value
System.Windows.DataTemplate
|
Gets or sets the data template selector used for Icon in a RadNavigationViewItem. This is a dependency property.
Declaration
[SRCategory("Appearance")]
public DataTemplateSelector IconTemplateSelector { get; set; }
Property Value
System.Windows.Controls.DataTemplateSelector
|
Gets or sets the visibility for the Icon in a RadNavigationViewItem.
Default value is Visibility.Visible. This is a dependency property.
Declaration
public Visibility IconVisibility { get; set; }
Property Value
System.Windows.Visibility
|
Gets or sets a value indicating whether the RadNavigationViewItem is in the expanded state. This is a dependency property.
Declaration
public bool IsExpanded { get; set; }
Property Value
Gets or sets a value indicating whether this instance is highlighted. This is a dependency property.
Declaration
public bool IsHighlighted { get; set; }
Property Value
Gets or sets a value indicating whether this instance can be selected through the UI.
Default value is true - the instance can be selected through the UI. This is a dependency property.
Declaration
public bool IsSelectable { get; set; }
Property Value
Gets or sets a value indicating whether this instance is selected. This is a dependency property.
Declaration
public bool IsSelected { get; set; }
Property Value
Declaration
public bool IsTopLevel { get; }
Property Value
Gets or sets the System.Windows.Style that is applied to the container element generated for each sub item. This is a dependency property.
Declaration
public Style ItemContainerStyle { get; set; }
Property Value
Declaration
public IList Items { get; }
Property Value
Gets or sets a collection used to generate the sub items of a RadNavigationViewItem. This is a dependency property.
Declaration
public IEnumerable ItemsSource { get; set; }
Property Value
System.Collections.IEnumerable
|
Gets or sets the System.Windows.DataTemplate used to display each sub item. This is a dependency property.
Declaration
public DataTemplate ItemTemplate { get; set; }
Property Value
System.Windows.DataTemplate
|
Methods
Creates or identifies the element that is used to display the given item.
Declaration
protected virtual DependencyObject GetContainerForItemOverride()
Returns
System.Windows.DependencyObject
|
Determines if the specified item is (or is eligible to be) its own container.
Declaration
protected virtual bool IsItemItsOwnContainerOverride(object item)
Parameters
System.Object
item
The item to check.
|
Returns
System.Boolean
True if the item is (or is eligible to be) its own container; otherwise, false.
|
When overridden in a derived class, is invoked whenever application code or internal processes call ApplyTemplate.
Declaration
public override void OnApplyTemplate()
Raises the System.Windows.Controls.Primitives.ButtonBase.Click routed event.
Declaration
protected override void OnClick()
Returns class-specific System.Windows.Automation.Peers.AutomationPeer.
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
System.Windows.Automation.Peers.AutomationPeer
The type-specific System.Windows.Automation.Peers.AutomationPeer
implementation.
|
Called before the System.Windows.UIElement.GotFocus event occurs.
Declaration
protected override void OnGotFocus(RoutedEventArgs e)
Parameters
System.Windows.RoutedEventArgs
e
The data for the event.
|
Raises the System.Windows.FrameworkElement.Initialized event. This method is invoked whenever System.Windows.FrameworkElement.IsInitialized is set to true internally.
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
System.EventArgs
e
The System.Windows.RoutedEventArgs that contains the event data.
|
Invoked when the IsExpanded property changes.
Declaration
protected virtual void OnIsExpandedChanged()
Called when selection is changed.
Declaration
protected virtual void OnIsSelectedChanged()
Called before the System.Windows.UIElement.LostFocus event occurs.
Declaration
protected override void OnLostFocus(RoutedEventArgs e)
Parameters
System.Windows.RoutedEventArgs
e
The data for the event.
|
Prepares the specified element to display the specified item.
Declaration
protected virtual void PrepareContainerForItemOverride(DependencyObject element, object item)
Parameters
System.Windows.DependencyObject
element
Element used to display the specified item.
|
System.Object
item
Specified item.
|
Events
Declaration
public event RoutedEventHandler Collapsed
Event Type
System.Windows.RoutedEventHandler
|
Declaration
public event RoutedEventHandler Expanded
Event Type
System.Windows.RoutedEventHandler
|
Extension Methods