Class
RadOfficeNavigationBarItem

Represents an item in a RadOfficeNavigationBar control that provides a peek popup feature for additional content display. This class derives from the class and implements the IThemable interface. It includes several dependency properties such as PeekPopupContent for the content of the peek popup, PeekPopupContentTemplate to define its data template, and PeekPopupStyle for its visual style. The item supports functionality for displaying and closing the peek popup based on mouse and key events, offering a responsive navigation experience.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.Navigation.dll

Syntax:

cs-api-definition
[TelerikToolboxCategory("Navigation")]
public class RadOfficeNavigationBarItem : ButtonBase

Inheritance: objectRadOfficeNavigationBarItem

Constructors

RadOfficeNavigationBarItem()

Initializes a new instance of the RadOfficeNavigationBarItem class.

Declaration

cs-api-definition
public RadOfficeNavigationBarItem()

Fields

CompactContentProperty

Identifies the CompactContent dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty CompactContentProperty

Field Value

DependencyProperty

CompactContentTemplateProperty

Identifies the CompactContentTemplate dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty CompactContentTemplateProperty

Field Value

DependencyProperty

CompactContentTemplateSelectorProperty

Identifies the CompactContentTemplateSelector dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty CompactContentTemplateSelectorProperty

Field Value

DependencyProperty

IsSelectedProperty

Identifies the IsSelected dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty IsSelectedProperty

Field Value

DependencyProperty

MenuIconProperty

Identifies the MenuIcon dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MenuIconProperty

Field Value

DependencyProperty

MenuIconTemplateProperty

Identifies the MenuIconTemplate dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MenuIconTemplateProperty

Field Value

DependencyProperty

PeekPopupContentProperty

Identifies the PeekPopupContent dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty PeekPopupContentProperty

Field Value

DependencyProperty

PeekPopupContentStringFormatProperty

Identifies the PeekPopupContentStringFormat dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty PeekPopupContentStringFormatProperty

Field Value

DependencyProperty

PeekPopupContentTemplateProperty

Identifies the PeekPopupContentTemplate dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty PeekPopupContentTemplateProperty

Field Value

DependencyProperty

PeekPopupContentTemplateSelectorProperty

Identifies the PeekPopupContentTemplateSelector dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty PeekPopupContentTemplateSelectorProperty

Field Value

DependencyProperty

PeekPopupStyleProperty

Identifies the PeekPopupStyle dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty PeekPopupStyleProperty

Field Value

DependencyProperty

Properties

CompactContent

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

Declaration

cs-api-definition
[SRCategory("Appearance")]
public object CompactContent { get; set; }

Property Value

object

CompactContentTemplate

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

Declaration

cs-api-definition
[SRCategory("Appearance")]
public DataTemplate CompactContentTemplate { get; set; }

Property Value

DataTemplate

CompactContentTemplateSelector

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

Declaration

cs-api-definition
[SRCategory("Appearance")]
public DataTemplateSelector CompactContentTemplateSelector { get; set; }

Property Value

DataTemplateSelector

IsSelected

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

Declaration

cs-api-definition
public bool IsSelected { get; set; }

Property Value

bool

MenuIcon

Gets or sets an object that will be transferred to the Icon property of the overflow items inside the OverflowMenu. This is a dependency property.

Declaration

cs-api-definition
public object MenuIcon { get; set; }

Property Value

object

MenuIconTemplate

Gets or sets a DataTemplate instance that will be transferred to the IconTemplate property of the overflow items inside the OverflowMenu. This is a dependency property.

Declaration

cs-api-definition
public DataTemplate MenuIconTemplate { get; set; }

Property Value

DataTemplate

PeekPopupContent

Gets or sets the content of the peek popup. This is a dependency property.

Declaration

cs-api-definition
public object PeekPopupContent { get; set; }

Property Value

object

PeekPopupContentStringFormat

Gets or sets the ContentStringFormat of the peek popup. This is a dependency property.

Declaration

cs-api-definition
public string PeekPopupContentStringFormat { get; set; }

Property Value

string

PeekPopupContentTemplate

Gets or sets the ContentTemplate of the peek popup. This is a dependency property.

Declaration

cs-api-definition
public DataTemplate PeekPopupContentTemplate { get; set; }

Property Value

DataTemplate

PeekPopupContentTemplateSelector

Gets or sets the ContentTemplateSelector of the peek popup. This is a dependency property.

Declaration

cs-api-definition
public DataTemplateSelector PeekPopupContentTemplateSelector { get; set; }

Property Value

DataTemplateSelector

PeekPopupStyle

Gets or sets the Style of the peek popup. The style should target RadCallout. This is a dependency property.

Declaration

cs-api-definition
public Style PeekPopupStyle { get; set; }

Property Value

Style

Position

Gets the position of this item in the current view.

Declaration

cs-api-definition
public int Position { get; }

Property Value

int

Methods

OnApplyTemplate()

Called when the template is applied to the RadOfficeNavigationBarItem. This method is responsible for initializing the visual elements of the control after the control's template has been applied.

Declaration

cs-api-definition
public override void OnApplyTemplate()

OnCreateAutomationPeer()

Returns class-specific AutomationPeer.

Declaration

cs-api-definition
protected override AutomationPeer OnCreateAutomationPeer()

Returns

AutomationPeer

The type-specific AutomationPeer implementation.

OnInitialized(EventArgs)

Raises the event. This method is invoked whenever is set to true internally.

Declaration

cs-api-definition
protected override void OnInitialized(EventArgs e)

Parameters

e

EventArgs

The RoutedEventArgs that contains the event data.

OnIsSelectedChanged()

Called when selection is changed.

Declaration

cs-api-definition
protected virtual void OnIsSelectedChanged()

OnKeyDown(KeyEventArgs)

Declaration

cs-api-definition
protected override void OnKeyDown(KeyEventArgs e)

Parameters

e

KeyEventArgs

OnKeyUp(KeyEventArgs)

Declaration

cs-api-definition
protected override void OnKeyUp(KeyEventArgs e)

Parameters

e

KeyEventArgs

OnMouseDown(MouseButtonEventArgs)

Invoked when an unhandled System.Windows.Input.Mouse.MouseDown attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

Declaration

cs-api-definition
protected override void OnMouseDown(MouseButtonEventArgs e)

Parameters

e

MouseButtonEventArgs

The System.Windows.Input.MouseButtonEventArgs that contains the event data. This event data reports details about the mouse button that was pressed and the handled state.

OnMouseEnter(MouseEventArgs)

Declaration

cs-api-definition
protected override void OnMouseEnter(MouseEventArgs e)

Parameters

e

MouseEventArgs

OnMouseLeave(MouseEventArgs)

Declaration

cs-api-definition
protected override void OnMouseLeave(MouseEventArgs e)

Parameters

e

MouseEventArgs

ResetTheme()

Resets the theme.

Declaration

cs-api-definition
public void ResetTheme()