New to Telerik UI for WPFStart a free 30-day trial

RadMenu

Class

Represents a menu control that allows for hierarchical organization of items, providing a dynamic user interface for navigating through a set of options. The RadMenu class includes support for main menu activation, orientation configuration, delay settings for showing and hiding menu items, and keyboard navigation. It is designed to facilitate the creation of interactive menus in a WPF application, allowing for comprehensive control over the visual representation and behavior of menu items.

Definition

Constructors

Initializes a new instance of the RadMenu class.

C#
public RadMenu()

Fields

IsMainMenuProperty

DependencyProperty

Identifies the IsMainMenu dependency property.

C#
public static readonly DependencyProperty IsMainMenuProperty

OrientationProperty

DependencyProperty

Identifies the Orientation dependency property.

C#
public static readonly DependencyProperty OrientationProperty

TopLevelHideDelayProperty

DependencyProperty

Identifies the TopLevelHideDelay dependency property.

C#
public static readonly DependencyProperty TopLevelHideDelayProperty

TopLevelShowDelayProperty

DependencyProperty

Identifies the TopLevelShowDelay dependency property.

C#
public static readonly DependencyProperty TopLevelShowDelayProperty

Identifies the WaitForTopLevelHeaderHideDuration dependency property.

C#
public static readonly DependencyProperty WaitForTopLevelHeaderHideDurationProperty

Properties

Gets or sets a value that specifies whether this RadMenu will participate in main menu activation notification. The default value is False. This is a dependency property.

C#
public bool IsMainMenu { get; set; }

Orientation

Orientation

Gets or sets a value that specifies the dimension in which child content is arranged. This is a dependency property.

C#
public Orientation Orientation { get; set; }

Gets or sets the time, in milliseconds, before closing menu when the mouse cursor leave a root menu item.

C#
[TypeConverter(typeof(DurationConverter))]
public Duration TopLevelHideDelay { get; set; }

Gets or sets the time, in milliseconds, before displaying menu when the mouse cursor is over a root menu item.

C#
[TypeConverter(typeof(DurationConverter))]
public Duration TopLevelShowDelay { get; set; }

Gets or sets whether RadMenu will wait for TopLevelHideDelay to complete or not. If set to True root menu item will stay open until TopLevelHideDelay is completed.

C#
public bool WaitForTopLevelHeaderHideDuration { get; set; }
Property Value:

True if RadMenu waits until TopLevelHideDelay is completed; otherwise, false.

Methods

Provides an appropriate RadMenuAutomationPeer implementation for this control, as part of the WPF automation infrastructure.

C#
protected override AutomationPeer OnCreateAutomationPeer()
Returns:

AutomationPeer

The type-specific AutomationPeer implementation.

Raises the event. This method is invoked whenever is set to true internally.

C#
protected override void OnInitialized(EventArgs e)
Parameters:eEventArgs

The RoutedEventArgs that contains the event data.

Invoked when keyboard key is pressed while the element has focus.

C#
protected override void OnKeyDown(KeyEventArgs e)
Parameters:eKeyEventArgs

The KeyEventArgs that contains the event data.

Overrides: MenuBase.OnKeyDown(KeyEventArgs)

Prepares the specified element to display the specified item.

C#
protected override void PrepareContainerForItemOverride(DependencyObject element, object item)
Parameters:elementDependencyObject

Element used to display the specified item.

itemobject

Specified item.

Overrides: MenuBase.PrepareContainerForItemOverride(DependencyObject, object)

Events

Occurs when a property value changes.

C#
public event PropertyChangedEventHandler PropertyChanged