New to Telerik UI for WPFStart a free 30-day trial

The RadOfficeNavigationBar class represents a navigation bar that facilitates seamless navigation between various views within an application. It allows users to access a streamlined subset of a view in a popup window, dynamically manages the visibility of items through an , and provides extensive customization options via the OfficeNavigationBarDialog. The class supports features such as drag-and-drop reordering of items, compact mode for displaying minimal content, and peek popups for contextual information. The navigation bar enhances the user experience by providing intuitive keyboard navigation, responsive item selection, and automated handling of item visibility based on the available space. Overall, it serves as an effective tool for organizing and presenting content in a user-friendly manner.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.Navigation.dll

Syntax:

C#
[TelerikToolboxCategory("Navigation")]
public class RadOfficeNavigationBar : Selector

Inheritance: objectRadOfficeNavigationBar

Constructors

Initializes a new instance of the RadOfficeNavigationBar class.

C#
public RadOfficeNavigationBar()

Fields

Identifies the IsDragReorderEnabled dependency property.

C#
public static readonly DependencyProperty IsDragReorderEnabledProperty

IsInCompactModeProperty

DependencyProperty

Identifies the IsInCompactMode dependency property.

C#
public static readonly DependencyProperty IsInCompactModeProperty

IsPeekPopupEnabledProperty

DependencyProperty

Identifies the IsPeekPopupEnabled dependency property.

C#
public static readonly DependencyProperty IsPeekPopupEnabledProperty

ItemOrientationProperty

DependencyProperty

Identifies the ItemOrientation dependency property.

C#
public static readonly DependencyProperty ItemOrientationProperty

ItemRotationAngleProperty

DependencyProperty

Identifies the ItemRotationAngle dependency property.

C#
public static readonly DependencyProperty ItemRotationAngleProperty

ItemsMaxCountProperty

DependencyProperty

Identifies the ItemsMaxCount dependency property.

C#
public static readonly DependencyProperty ItemsMaxCountProperty

OrientationProperty

DependencyProperty

Identifies the Orientation dependency property.

C#
public static readonly DependencyProperty OrientationProperty

PeekPopupCloseDelayProperty

DependencyProperty

Identifies the PeekPopupCloseDelay dependency property.

C#
public static readonly DependencyProperty PeekPopupCloseDelayProperty

Registers the PeekPopupOpening routed event.

C#
public static readonly RoutedEvent PeekPopupOpeningEvent

PeekPopupShowDelayProperty

DependencyProperty

Identifies the PeekPopupShowDelay dependency property.

C#
public static readonly DependencyProperty PeekPopupShowDelayProperty

Properties

Gets or sets a boolean value indicating whether drag and drop reordering of items is enabled.

C#
public bool IsDragReorderEnabled { get; set; }

Gets or sets a boolean value indicating whether the control is in Compact mode. In that mode only the compact content of the items will be visible.

C#
public bool IsInCompactMode { get; set; }

Gets or sets a boolean value indicating whether a peek popup will be shown upon hovering an item.

C#
public bool IsPeekPopupEnabled { get; set; }

ItemOrientation

Orientation

Gets or sets the orientation in which each individual RadOfficeNavigationBarItem will be displayed.

C#
public Orientation ItemOrientation { get; set; }

Gets the angle the items are rotated by.

C#
public double ItemRotationAngle { get; }

Gets or sets an integer value identifying the maximum number of items that will be displayed at a time.

C#
public int ItemsMaxCount { get; set; }

Gets the view model for the OfficeNavigationBarDialog control.

C#
public OfficeNavigationBarDialogViewModel OfficeNavigationBarDialogViewModel { get; }

Orientation

Orientation

Gets or sets the orientation in which all the RadOfficeNavigationBarItems will be displayed.

C#
public Orientation Orientation { get; set; }

Gets or sets an double value indicating the delay time in milliseconds between when the mouse leaves the item and when the peek popup is closed.

C#
public double PeekPopupCloseDelay { get; set; }

Gets or sets an double value indicating the delay time in milliseconds between when an item is hovered and when the peek popup is shown.

C#
public double PeekPopupShowDelay { get; set; }

Methods

Clears the specified element displaying the specified item container.

C#
protected override void ClearContainerForItemOverride(DependencyObject element, object item)
Parameters:elementDependencyObject

Element used to display the specified item.

itemobject

Specified item.

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

C#
protected override DependencyObject GetContainerForItemOverride()
Returns:

DependencyObject

Determines if the specified item is (or is eligible to be) its own container.

C#
protected override bool IsItemItsOwnContainerOverride(object item)
Parameters:itemobject

The item to check.

Returns:

bool

True if the item is (or is eligible to be) its own container; otherwise, false.

Called when the template for the RadOfficeNavigationBar is applied. This method is used to perform any necessary setup after the control's template is applied.

C#
public override void OnApplyTemplate()

Returns class-specific AutomationPeer.

C#
protected override AutomationPeer OnCreateAutomationPeer()
Returns:

AutomationPeer

The type-specific AutomationPeer implementation.

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

C#
protected override void OnInitialized(EventArgs e)
Parameters:eEventArgs

The RoutedEventArgs that contains the event data.

C#
protected override void OnItemsChanged(NotifyCollectionChangedEventArgs e)
Parameters:eNotifyCollectionChangedEventArgs
C#
protected override void OnKeyDown(KeyEventArgs e)
Parameters:eKeyEventArgs
C#
protected override void OnSelectionChanged(SelectionChangedEventArgs e)
Parameters:eSelectionChangedEventArgs

Prepares the specified element to display the specified item container.

C#
protected override void PrepareContainerForItemOverride(DependencyObject element, object item)
Parameters:elementDependencyObject

Element used to display the specified item.

itemobject

Specified item.

Resets the theme.

C#
public void ResetTheme()

Events

Occurs when a peek popup is about to be shown.

C#
public event EventHandler<PeekPopupOpeningEventArgs> PeekPopupOpening