skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop
    Web
    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX UI for Silverlight UI for PHP UI for JSP
    Mobile
    UI for .NET MAUI UI for Xamarin
    Document Management
    Telerik Document Processing
    Desktop
    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF UI for UWP
    Reporting & Mocking
    Telerik Reporting Telerik Report Server Telerik JustMock
    Automated Testing
    Test Studio Test Studio Dev Edition
    CMS
    Sitefinity
    UI/UX Tools
    ThemeBuilder Design System Kit
    Debugging
    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Jam FiddlerCap FiddlerCore
    Extended Reality
    UI for Unity XR
    Free Tools
    JustAssembly JustDecompile VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Release History
  • Docs & Support
  • Pricing
  • Search
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class MenuBase

Represents a control that defines choices for users to select.

Inheritance
System.Object
ItemsControl
MenuBase
RadContextMenu
RadMenu
Inherited Members
ItemsControl.ItemContainerStyleProperty
ItemsControl.IsTextSearchEnabledProperty
ItemsControl.ItemContainerStyleSelectorProperty
ItemsControl.ItemTemplateSelectorProperty
ItemsControl.IsFocusedProperty
ItemsControl.HasItemsProperty
ItemsControl.ItemsControlFromItemContainer(DependencyObject)
ItemsControl.OnApplyTemplate()
ItemsControl.ChangeVisualState()
ItemsControl.ChangeVisualState(Boolean)
ItemsControl.OnIsEnabledChanged(DependencyPropertyChangedEventArgs)
ItemsControl.OnItemsChanged(NotifyCollectionChangedEventArgs)
ItemsControl.OnGotFocus(RoutedEventArgs)
ItemsControl.OnItemTemplateSelectorChanged(DataTemplateSelector, DataTemplateSelector)
ItemsControl.OnIsFocusedChanged(DependencyPropertyChangedEventArgs)
ItemsControl.IsTextSearchEnabled
ItemsControl.HasItems
ItemsControl.IsFocused
ItemsControl.ItemContainerStyle
ItemsControl.ItemContainerStyleSelector
ItemsControl.ItemTemplateSelector
ItemsControl.OverrideStyles
ItemsControl.ItemContainerGenerator
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.Navigation.dll

Syntax

public abstract class MenuBase : ItemsControl

Constructors

MenuBase()

Initializes a new instance of the MenuBase class.

Declaration
protected 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
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.

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.

OnLostFocus(RoutedEventArgs)

Occurs when a MenuBase loses focus.

Declaration
protected override void OnLostFocus(RoutedEventArgs e)
Parameters
System.Windows.RoutedEventArgs e

The data for the event.

Overrides
ItemsControl.OnLostFocus(RoutedEventArgs)

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.

Overrides
ItemsControl.PrepareContainerForItemOverride(DependencyObject, Object)

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

Extension Methods

CollectionExtensions.ToEnumerable<T>(T)
EnumerableExtensions.ToEnumerable<T>(T)

Was this article helpful?

Tell us how we can improve this article

Skip
Getting Started
  • Install Now
  • Demos
  • SDK Samples Browser
  • Sample Applications
Support Resources
  • Code Library
  • Knowledge Base
  • MVVM Support
  • Videos
  • GitHub SDK Repository
Community
  • Forums
  • Blogs
  • XAML Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.