skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop

    Web

    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Test Studio Dev Edition Telerik JustMock

    CMS

    Sitefinity

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class RadNavigationViewItem

Represents container for item in a RadNavigationView control.

Inheritance
System.Object
RadNavigationViewItem
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.Navigation.dll

Syntax

[TelerikToolboxCategory("Navigation")]
public class RadNavigationViewItem : ButtonBase, IThemable

Constructors

RadNavigationViewItem()

Initializes a new instance of the RadNavigationViewItem class.

Declaration
public RadNavigationViewItem()

Fields

CalculatedItemIndentationProperty

Identifies the CalculatedItemIndentation dependency property.

Declaration
public static readonly DependencyProperty CalculatedItemIndentationProperty
Field Value
System.Windows.DependencyProperty

CollapsedEvent

Identifies the Collapsed routed event.

Declaration
public static readonly RoutedEvent CollapsedEvent
Field Value
System.Windows.RoutedEvent

CollapsedIconProperty

Identifies the CollapsedIcon dependency property.

Declaration
public static readonly DependencyProperty CollapsedIconProperty
Field Value
System.Windows.DependencyProperty

CollapsedIconTemplateProperty

Identifies the CollapsedIconTemplate dependency property.

Declaration
public static readonly DependencyProperty CollapsedIconTemplateProperty
Field Value
System.Windows.DependencyProperty

DisplayMemberPathProperty

Identifies the DisplayMemberPath dependency property.

Declaration
public static readonly DependencyProperty DisplayMemberPathProperty
Field Value
System.Windows.DependencyProperty

ExpandedEvent

Identifies the Expanded routed event.

Declaration
public static readonly RoutedEvent ExpandedEvent
Field Value
System.Windows.RoutedEvent

ExpandedIconProperty

Identifies the ExpandedIcon dependency property.

Declaration
public static readonly DependencyProperty ExpandedIconProperty
Field Value
System.Windows.DependencyProperty

ExpandedIconTemplateProperty

Identifies the ExpandedIconTemplate dependency property.

Declaration
public static readonly DependencyProperty ExpandedIconTemplateProperty
Field Value
System.Windows.DependencyProperty

HasSelectedSubItemProperty

Identifies the HasSelectedSubItem dependency property.

Declaration
public static readonly DependencyProperty HasSelectedSubItemProperty
Field Value
System.Windows.DependencyProperty

IconProperty

Identifies the Icon dependency property.

Declaration
public static readonly DependencyProperty IconProperty
Field Value
System.Windows.DependencyProperty

IconTemplateProperty

Identifies the IconTemplate dependency property.

Declaration
public static readonly DependencyProperty IconTemplateProperty
Field Value
System.Windows.DependencyProperty

IconTemplateSelectorProperty

Identifies the IconTemplateSelector dependency property.

Declaration
public static readonly DependencyProperty IconTemplateSelectorProperty
Field Value
System.Windows.DependencyProperty

IconVisibilityProperty

Identifies the IconVisibility dependency property.

Declaration
public static readonly DependencyProperty IconVisibilityProperty
Field Value
System.Windows.DependencyProperty

IsExpandedProperty

Identifies the IsExpanded dependency property.

Declaration
public static readonly DependencyProperty IsExpandedProperty
Field Value
System.Windows.DependencyProperty

IsHighlightedProperty

Identifies the IsHighlighted dependency property.

Declaration
public static readonly DependencyProperty IsHighlightedProperty
Field Value
System.Windows.DependencyProperty

IsSelectableProperty

Identifies the IsSelectable dependency property.

Declaration
public static readonly DependencyProperty IsSelectableProperty
Field Value
System.Windows.DependencyProperty

IsSelectedProperty

Identifies the IsSelected dependency property.

Declaration
public static readonly DependencyProperty IsSelectedProperty
Field Value
System.Windows.DependencyProperty

ItemContainerStyleProperty

Identifies the ItemContainerStyle dependency property.

Declaration
public static readonly DependencyProperty ItemContainerStyleProperty
Field Value
System.Windows.DependencyProperty

ItemsSourceProperty

Identifies the ItemsSource dependency property.

Declaration
public static readonly DependencyProperty ItemsSourceProperty
Field Value
System.Windows.DependencyProperty

ItemTemplateProperty

Identifies the ItemTemplate dependency property.

Declaration
public static readonly DependencyProperty ItemTemplateProperty
Field Value
System.Windows.DependencyProperty

Properties

CalculatedItemIndentation

Gets the calculated indentation length for the level of the NavigationViewItem.

Declaration
public double CalculatedItemIndentation { get; }
Property Value
System.Double

CollapsedIcon

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
System.Object

CollapsedIconTemplate

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

DisplayMemberPath

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
System.String

ExpandedIcon

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
System.Object

ExpandedIconTemplate

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

HasSelectedSubItem

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
System.Boolean

Icon

Gets or sets the icon that appears in a RadNavigationViewItem. This is a dependency property.

Declaration
[SRCategory("Appearance")]
public object Icon { get; set; }
Property Value
System.Object

IconTemplate

Gets or sets the data template used for Icon in a RadNavigationViewItem. This is a dependency property.

Declaration
[SRCategory("Appearance")]
public DataTemplate IconTemplate { get; set; }
Property Value
System.Windows.DataTemplate

IconTemplateSelector

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

IconVisibility

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

IsExpanded

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
System.Boolean

IsHighlighted

Gets or sets a value indicating whether this instance is highlighted. This is a dependency property.

Declaration
public bool IsHighlighted { get; set; }
Property Value
System.Boolean

IsSelectable

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
System.Boolean

IsSelected

Gets or sets a value indicating whether this instance is selected. This is a dependency property.

Declaration
public bool IsSelected { get; set; }
Property Value
System.Boolean

IsTopLevel

Gets value that indicates the RadNavigationViewItem is top level.

Declaration
public bool IsTopLevel { get; }
Property Value
System.Boolean

ItemContainerStyle

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
System.Windows.Style

Items

Gets the sub items of the RadNavigationViewItem.

Declaration
public IList Items { get; }
Property Value
System.Collections.IList

ItemsSource

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

ItemTemplate

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

GetContainerForItemOverride()

Creates or identifies the element that is used to display the given item.

Declaration
protected virtual DependencyObject GetContainerForItemOverride()
Returns
System.Windows.DependencyObject

IsItemItsOwnContainerOverride(Object)

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.

OnApplyTemplate()

When overridden in a derived class, is invoked whenever application code or internal processes call ApplyTemplate.

Declaration
public override void OnApplyTemplate()

OnClick()

Raises the System.Windows.Controls.Primitives.ButtonBase.Click routed event.

Declaration
protected override void OnClick()

OnCreateAutomationPeer()

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.

OnGotFocus(RoutedEventArgs)

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.

OnInitialized(EventArgs)

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.

OnIsExpandedChanged()

Invoked when the IsExpanded property changes.

Declaration
protected virtual void OnIsExpandedChanged()

OnIsSelectedChanged()

Called when selection is changed.

Declaration
protected virtual void OnIsSelectedChanged()

OnLostFocus(RoutedEventArgs)

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.

OnMouseEnter(MouseEventArgs)

Responds to a MouseEnter event.

Declaration
protected override void OnMouseEnter(MouseEventArgs e)
Parameters
System.Windows.Input.MouseEventArgs e

The MouseEventArgs instance containing the event data.

OnMouseLeave(MouseEventArgs)

Responds to a MouseLeave event.

Declaration
protected override void OnMouseLeave(MouseEventArgs e)
Parameters
System.Windows.Input.MouseEventArgs e

The MouseEventArgs instance containing the event data.

OnMouseMove(MouseEventArgs)

Responds to a MouseMove event.

Declaration
protected override void OnMouseMove(MouseEventArgs e)
Parameters
System.Windows.Input.MouseEventArgs e

The MouseEventArgs instance containing the event data.

OnMouseWheel(MouseWheelEventArgs)

Responds to a MouseWheel event.

Declaration
protected override void OnMouseWheel(MouseWheelEventArgs e)
Parameters
System.Windows.Input.MouseWheelEventArgs e

The MouseWheelEventArgs instance containing the event data.

PrepareContainerForItemOverride(DependencyObject, Object)

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.

ResetTheme()

Resets the theme.

Declaration
public void ResetTheme()

Events

Collapsed

Occurs when the RadNavigationViewItem gets collapsed.

Declaration
public event RoutedEventHandler Collapsed
Event Type
System.Windows.RoutedEventHandler

Expanded

Occurs when the RadNavigationViewItem gets expanded.

Declaration
public event RoutedEventHandler Expanded
Event Type
System.Windows.RoutedEventHandler

Extension Methods

CollectionExtensions.ToEnumerable<T>(T)
EnumerableExtensions.ToEnumerable<T>(T)
Getting Started
  • Install Now
  • Demos
  • SDK Samples Browser
  • Sample Applications
Support Resources
  • Code Library
  • Knowledge Base
  • MVVM Support
  • Videos
  • GitHub SDK Repository
Community
  • Forums
  • Blogs
  • XAML Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.