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:
[TelerikToolboxCategory("Navigation")]
public class RadOfficeNavigationBarItem : ButtonBase
Inheritance: objectRadOfficeNavigationBarItem
Constructors
Initializes a new instance of the RadOfficeNavigationBarItem class.
public RadOfficeNavigationBarItem()
Fields
CompactContentProperty
DependencyProperty
Identifies the CompactContent dependency property.
public static readonly DependencyProperty CompactContentProperty
CompactContentTemplateProperty
DependencyProperty
Identifies the CompactContentTemplate dependency property.
public static readonly DependencyProperty CompactContentTemplateProperty
CompactContentTemplateSelectorProperty
DependencyProperty
Identifies the CompactContentTemplateSelector dependency property.
public static readonly DependencyProperty CompactContentTemplateSelectorProperty
IsSelectedProperty
DependencyProperty
Identifies the IsSelected dependency property.
public static readonly DependencyProperty IsSelectedProperty
MenuIconProperty
DependencyProperty
Identifies the MenuIcon dependency property.
public static readonly DependencyProperty MenuIconProperty
MenuIconTemplateProperty
DependencyProperty
Identifies the MenuIconTemplate dependency property.
public static readonly DependencyProperty MenuIconTemplateProperty
PeekPopupContentProperty
DependencyProperty
Identifies the PeekPopupContent dependency property.
public static readonly DependencyProperty PeekPopupContentProperty
PeekPopupContentStringFormatProperty
DependencyProperty
Identifies the PeekPopupContentStringFormat dependency property.
public static readonly DependencyProperty PeekPopupContentStringFormatProperty
PeekPopupContentTemplateProperty
DependencyProperty
Identifies the PeekPopupContentTemplate dependency property.
public static readonly DependencyProperty PeekPopupContentTemplateProperty
PeekPopupContentTemplateSelectorProperty
DependencyProperty
Identifies the PeekPopupContentTemplateSelector dependency property.
public static readonly DependencyProperty PeekPopupContentTemplateSelectorProperty
PeekPopupStyleProperty
DependencyProperty
Identifies the PeekPopupStyle dependency property.
public static readonly DependencyProperty PeekPopupStyleProperty
Properties
Gets or sets the CompactContent that appears in a RadNavigationViewItem. This is a dependency property.
[SRCategory("Appearance")]
public object CompactContent { get; set; }
CompactContentTemplate
DataTemplate
Gets or sets the data template used for CompactContent in a RadNavigationViewItem. This is a dependency property.
[SRCategory("Appearance")]
public DataTemplate CompactContentTemplate { get; set; }
CompactContentTemplateSelector
DataTemplateSelector
Gets or sets the data template selector used for CompactContent in a RadNavigationViewItem. This is a dependency property.
[SRCategory("Appearance")]
public DataTemplateSelector CompactContentTemplateSelector { get; set; }
Gets or sets a value indicating whether this instance is selected. This is a dependency property.
public bool IsSelected { get; set; }
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.
public object MenuIcon { get; set; }
MenuIconTemplate
DataTemplate
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.
public DataTemplate MenuIconTemplate { get; set; }
Gets or sets the content of the peek popup. This is a dependency property.
public object PeekPopupContent { get; set; }
Gets or sets the ContentStringFormat of the peek popup. This is a dependency property.
public string PeekPopupContentStringFormat { get; set; }
PeekPopupContentTemplate
DataTemplate
Gets or sets the ContentTemplate of the peek popup. This is a dependency property.
public DataTemplate PeekPopupContentTemplate { get; set; }
PeekPopupContentTemplateSelector
DataTemplateSelector
Gets or sets the ContentTemplateSelector of the peek popup. This is a dependency property.
public DataTemplateSelector PeekPopupContentTemplateSelector { get; set; }
PeekPopupStyle
Style
Gets or sets the Style of the peek popup. The style should target RadCallout. This is a dependency property.
public Style PeekPopupStyle { get; set; }
Methods
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.
public override void OnApplyTemplate()
OnCreateAutomationPeer()
AutomationPeer
Returns class-specific AutomationPeer.
protected override AutomationPeer OnCreateAutomationPeer()
AutomationPeer
The type-specific AutomationPeer implementation.
Raises the event. This method is invoked whenever is set to true internally.
protected override void OnInitialized(EventArgs e)
The RoutedEventArgs that contains the event data.
Called when selection is changed.
protected virtual void OnIsSelectedChanged()
protected override void OnKeyDown(KeyEventArgs e)
protected override void OnKeyUp(KeyEventArgs e)
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.
protected override void OnMouseDown(MouseButtonEventArgs e)
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.
protected override void OnMouseEnter(MouseEventArgs e)
protected override void OnMouseLeave(MouseEventArgs e)
Resets the theme.
public void ResetTheme()