MenuBase
Represents a control that defines choices for users to select.
Definition
Namespace:Telerik.Windows.Controls
Assembly:Telerik.Windows.Controls.Navigation.dll
Syntax:
public abstract class MenuBase : ItemsControl
Inheritance: objectMenuBase
Derived Classes:
Constructors
Initializes a new instance of the MenuBase class.
protected MenuBase()
Fields
ClickToOpenProperty
DependencyProperty
Identifies the ClickToOpen dependency property.
public static readonly DependencyProperty ClickToOpenProperty
HideDelayProperty
DependencyProperty
Identifies the HideDelay dependency property.
public static readonly DependencyProperty HideDelayProperty
IconColumnWidthProperty
DependencyProperty
Identifies the IconColumnWidth dependency property.
public static readonly DependencyProperty IconColumnWidthProperty
ItemContainerTemplateSelectorProperty
DependencyProperty
Identifies the ItemContainerTemplateSelector dependency property.
public static readonly DependencyProperty ItemContainerTemplateSelectorProperty
NotifyOnHeaderClickProperty
DependencyProperty
Identifies the NotifyOnHeaderClick dependency property.
public static readonly DependencyProperty NotifyOnHeaderClickProperty
ShowDelayProperty
DependencyProperty
Identifies the ShowDelay dependency property.
public static readonly DependencyProperty ShowDelayProperty
Properties
Gets or sets whether the child group opens upon clicking a parent item.
public bool ClickToOpen { get; set; }
HideDelay
Duration
Gets or sets the time, in milliseconds, before closing menu when the mouse cursor leave a submenu item.
[TypeConverter(typeof(DurationConverter))]
public Duration HideDelay { get; set; }
Gets or sets the width of the column used to display the Icon.
public double IconColumnWidth { get; set; }
ItemContainerTemplateSelector
DataTemplateSelector
Gets or sets the custom logic for choosing a template used to display each item.
public DataTemplateSelector ItemContainerTemplateSelector { get; set; }
Gets or sets a value indicating whether the ItemClick is raised when the user clicks on a item that has children.
public bool NotifyOnHeaderClick { get; set; }
True if the ItemClick event is raised when the user clicks on item that has children; otherwise, false.
ShowDelay
Duration
Gets or sets the time, in milliseconds, before displaying menu when the mouse cursor is over a submenu item.
[TypeConverter(typeof(DurationConverter))]
public Duration ShowDelay { get; set; }
Methods
Clear the Menu property.
protected override void ClearContainerForItemOverride(DependencyObject element, object item)
Element used to display the specified item.
itemobjectSpecified item.
GetContainerForItemOverride()
DependencyObject
Creates or identifies the element that is used to display the given item.
protected override DependencyObject GetContainerForItemOverride()
DependencyObject
Determines if the specified item is RadMenuItem.
protected virtual bool IsItemItsOwnContainerProtected(object item)
The item to check.
Returns:True if the item is RadMenuItem; otherwise, false.
Responds to a change to the property.
protected override void OnIsKeyboardFocusWithinChanged(DependencyPropertyChangedEventArgs e)
The event data for the event.
Raises the ItemClick event.
protected virtual void OnItemClick(RadRoutedEventArgs args)
The RadRoutedEventArgs instance containing the event data.
Invoked when keyboard key is pressed while the element has focus.
protected override void OnKeyDown(KeyEventArgs e)
The event data for the event.
Called when a MenuBase is loaded.
protected virtual void OnLoaded(RoutedEventArgs e)
The RoutedEventArgs instance containing the event data.
Prepares the specified element to display the specified item.
protected override void PrepareContainerForItemOverride(DependencyObject element, object item)
Element used to display the specified item.
itemobjectSpecified item.
Events
Occurs when an item was clicked.
public event RadRoutedEventHandler ItemClick