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

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Test Studio Dev Edition Telerik JustMock

    CMS

    Sitefinity

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • 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
MenuBase
RadContextMenu
RadMenu
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
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

Extension Methods

CollectionExtensions.ToEnumerable<T>(T)
EnumerableExtensions.ToEnumerable<T>(T)
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.