Class RadMenuElement
Represents a menu. It may be nested in other telerik controls. RadMenu can be horizontal or vertical. You can add, remove, and disable menu items at run-time. It offers full support for the Telerik RadControls for WinForm theming engine, allowing you to easily construct a variety of stunning visual effects. You can nest any other RadControl within a RadMenu . For example, you can create a menu with an embedded textbox or combobox.
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
public class RadMenuElement : RadItem, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IComponent, IDisposable, IBindableComponent, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode
Constructors
RadMenuElement()
Declaration
public RadMenuElement()
Fields
AllItemsEqualHeightProperty
DropDownAnimationEasingProperty
DropDownAnimationEnabledProperty
DropDownAnimationFramesProperty
OrientationProperty
Properties
AllItemsEqualHeight
Gets or sets whether all items will appear with the same size (the size of the highest item in the collection).
Declaration
[RadPropertyDefaultValue("AllItemsEqualHeight", typeof(RadMenuElement))]
public bool AllItemsEqualHeight { get; set; }
Property Value
System.
|
AllowMerge
Declaration
public bool AllowMerge { get; set; }
Property Value
System.
|
CloseButton
Declaration
public RadImageButtonElement CloseButton { get; set; }
Property Value
ContextItem
Gets or sets the context items.
Declaration
public RadMenuItemBase ContextItem { get; set; }
Property Value
DropDownAnimationEasing
Gets or sets the type of the DropDown animation.
Declaration
[RadPropertyDefaultValue("DropDownAnimationEasing", typeof(RadMenuElement))]
public RadEasingType DropDownAnimationEasing { get; set; }
Property Value
DropDownAnimationEnabled
Gets or sets a value indicating whether the DropDown animation will be enabled when it shows.
Declaration
[RadPropertyDefaultValue("DropDownAnimationEnabled", typeof(RadMenuElement))]
public bool DropDownAnimationEnabled { get; set; }
Property Value
System.
|
DropDownAnimationFrames
Gets or sets the number of frames that will be used when the DropDown is being animated.
Declaration
[RadPropertyDefaultValue("DropDownAnimationFrames", typeof(RadMenuElement))]
public int DropDownAnimationFrames { get; set; }
Property Value
System.
|
Items
Gets all root menu items (see Rad
Declaration
[RadNewItem("Type here", true)]
public RadItemOwnerCollection Items { get; }
Property Value
Remarks
Root menu items are these menu items that can be displayed in the menu when nothing is dropped down.
Menu items are hierarchical items - they have a parent item and a list of children
items. Children items are menu items that can be dropped down as submenu of
their parent. The difference between the root and the non-root menu items is that
root items have no parent item (the property
Is
Note that Items contains all root menu items, not just the items that are displayed. An item remains in the Items collection even if it is an overflow item and is therefore not currently visible.
See Also
ItemsLayout
Gets an instance of the Wrap
Declaration
public WrapLayoutPanel ItemsLayout { get; }
Property Value
MaximizeButton
Declaration
public RadImageButtonElement MaximizeButton { get; set; }
Property Value
MenuBorder
Gets an instance of the Border
Declaration
public BorderPrimitive MenuBorder { get; }
Property Value
MenuFill
Gets an instance of the Fill
Declaration
public FillPrimitive MenuFill { get; }
Property Value
MinimizeButton
Declaration
public RadImageButtonElement MinimizeButton { get; set; }
Property Value
Orientation
Gets or sets the
System.
Declaration
[RadPropertyDefaultValue("Orientation", typeof(RadMenuElement))]
public Orientation Orientation { get; set; }
Property Value
System.
|
SystemButtons
Methods
ArrangeOverride(SizeF)
Declaration
protected override SizeF ArrangeOverride(SizeF finalSize)
Parameters
System.
|
Returns
System.
|
Overrides
CreateChildElements()
Declaration
protected override void CreateChildElements()
Overrides
InitializeFields()
MeasureOverride(SizeF)
Declaration
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters
System.
|
Returns
System.
|
Overrides
OnAllItemsEqualHeightChanged(EventArgs)
Raises the All
Declaration
protected virtual void OnAllItemsEqualHeightChanged(EventArgs args)
Parameters
System. An System. |
OnOrientationChanged(EventArgs)
Raises the Orientation
Declaration
protected virtual void OnOrientationChanged(EventArgs args)
Parameters
System. An System. |
OnPropertyChanged(RadPropertyChangedEventArgs)
Declaration
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Parameters
Overrides
OnTunnelEvent(RadElement, RoutedEventArgs)
Declaration
protected override void OnTunnelEvent(RadElement sender, RoutedEventArgs args)
Parameters
Rad
|
Routed
|
Overrides
Events
AllItemsEqualHeightChanged
Occurs when the menu AllItemsEqualHeight property value changes.
Declaration
public event EventHandler AllItemsEqualHeightChanged
Event Type
System.
|
OrientationChanged
Occurs when the menu Orientation property value changes.
Declaration
public event EventHandler OrientationChanged
Event Type
System.
|