ClassRadOfficeNavigationBarItem
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
RadOfficeNavigationBarItem()
Initializes a new instance of the RadOfficeNavigationBarItem class.
Declaration
public RadOfficeNavigationBarItem()
Fields
CompactContentProperty
Identifies the CompactContent dependency property.
Declaration
public static readonly DependencyProperty CompactContentProperty
Field Value
DependencyProperty
CompactContentTemplateProperty
Identifies the CompactContentTemplate dependency property.
Declaration
public static readonly DependencyProperty CompactContentTemplateProperty
Field Value
DependencyProperty
CompactContentTemplateSelectorProperty
Identifies the CompactContentTemplateSelector dependency property.
Declaration
public static readonly DependencyProperty CompactContentTemplateSelectorProperty
Field Value
DependencyProperty
IsSelectedProperty
Identifies the IsSelected dependency property.
Declaration
public static readonly DependencyProperty IsSelectedProperty
Field Value
DependencyProperty
MenuIconProperty
Identifies the MenuIcon dependency property.
Declaration
public static readonly DependencyProperty MenuIconProperty
Field Value
DependencyProperty
MenuIconTemplateProperty
Identifies the MenuIconTemplate dependency property.
Declaration
public static readonly DependencyProperty MenuIconTemplateProperty
Field Value
DependencyProperty
PeekPopupContentProperty
Identifies the PeekPopupContent dependency property.
Declaration
public static readonly DependencyProperty PeekPopupContentProperty
Field Value
DependencyProperty
PeekPopupContentStringFormatProperty
Identifies the PeekPopupContentStringFormat dependency property.
Declaration
public static readonly DependencyProperty PeekPopupContentStringFormatProperty
Field Value
DependencyProperty
PeekPopupContentTemplateProperty
Identifies the PeekPopupContentTemplate dependency property.
Declaration
public static readonly DependencyProperty PeekPopupContentTemplateProperty
Field Value
DependencyProperty
PeekPopupContentTemplateSelectorProperty
Identifies the PeekPopupContentTemplateSelector dependency property.
Declaration
public static readonly DependencyProperty PeekPopupContentTemplateSelectorProperty
Field Value
DependencyProperty
PeekPopupStyleProperty
Identifies the PeekPopupStyle dependency property.
Declaration
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
[SRCategory("Appearance")]
public object CompactContent { get; set; }
Property Value
CompactContentTemplate
Gets or sets the data template used for CompactContent in a RadNavigationViewItem. This is a dependency property.
Declaration
[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
[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.
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.
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
public DataTemplate MenuIconTemplate { get; set; }
Property Value
DataTemplate
PeekPopupContent
Gets or sets the content of the peek popup. This is a dependency property.
PeekPopupContentStringFormat
Gets or sets the ContentStringFormat of the peek popup. This is a dependency property.
Declaration
public string PeekPopupContentStringFormat { get; set; }
Property Value
PeekPopupContentTemplate
Gets or sets the ContentTemplate of the peek popup. This is a dependency property.
Declaration
public DataTemplate PeekPopupContentTemplate { get; set; }
Property Value
DataTemplate
PeekPopupContentTemplateSelector
Gets or sets the ContentTemplateSelector of the peek popup. This is a dependency property.
Declaration
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
public Style PeekPopupStyle { get; set; }
Property Value
Style
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
public override void OnApplyTemplate()
OnCreateAutomationPeer()
Returns class-specific AutomationPeer.
Declaration
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
protected override void OnInitialized(EventArgs e)
Parameters
e
The RoutedEventArgs that contains the event data.
OnIsSelectedChanged()
Called when selection is changed.
Declaration
protected virtual void OnIsSelectedChanged()
OnKeyDown(KeyEventArgs)
Declaration
protected override void OnKeyDown(KeyEventArgs e)
Parameters
e
KeyEventArgs
OnKeyUp(KeyEventArgs)
Declaration
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
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
protected override void OnMouseEnter(MouseEventArgs e)
Parameters
e
MouseEventArgs
OnMouseLeave(MouseEventArgs)
Declaration
protected override void OnMouseLeave(MouseEventArgs e)
Parameters
e
MouseEventArgs