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