ClassRadApplicationMenuDropDown
Represents an application drop down menu in Office 2007 style.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
[DefaultBindingProperty("Items")]
[RadToolboxItem(false)]
public class RadApplicationMenuDropDown : RadDropDownButtonPopup, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, INotifyPropertyChanged, ISupportInitializeNotification, ISupportInitialize, IComponentTreeHandler, ILayoutHandler, IAnalyticsProvider, IPopupControl, IItemsControl
Inheritance: objectMarshalByRefObjectComponentControlScrollableControlRadControlRadPopupControlBaseRadItemsPopupControlRadDropDownMenuRadDropDownButtonPopupRadApplicationMenuDropDown
Implements:
Inherited Members
Constructors
RadApplicationMenuDropDown(RadApplicationMenuButtonElement)
Declaration
public RadApplicationMenuDropDown(RadApplicationMenuButtonElement ownerElement)
Parameters
ownerElement
Properties
ButtonItems
Gets a collection representing the button items of RadApplicationMenu.
Declaration
[Browsable(true)]
public virtual RadItemOwnerCollection ButtonItems { get; }
Property Value
RightColumnItems
Gets a collection representing the right column items of RadApplicationMenu.
Declaration
[Browsable(true)]
public virtual RadItemOwnerCollection RightColumnItems { get; }
Property Value
RightColumnWidth
Gets or sets the right column width
ThemeClassName
Gets or sets the theme class name for the drop-down menu. The theme class name resolution follows a hierarchy: checking owner inheritance, local settings, owner control theme capability, and finally the default class name.
Declaration
public override string ThemeClassName { get; set; }
Property Value
Overrides
Methods
CanClosePopup(RadPopupCloseReason)
Determines whether the popup can be closed for the specified reason, considering owner element state and mouse interaction.
Declaration
public override bool CanClosePopup(RadPopupCloseReason reason)
Parameters
reason
The reason for closing the popup.
Returns
True if the popup can be closed; otherwise, false.
Overrides
Construct()
Declaration
protected override void Construct()
Overrides
ControlDefinesThemeForElement(RadElement)
Determines whether this control defines the theme for the specified element, considering owner inheritance and element type.
Declaration
public override bool ControlDefinesThemeForElement(RadElement element)
Parameters
element
The element to evaluate for theme definition.
Returns
True if this control defines the theme for the element; otherwise, false.
Overrides
CreatePopupElement()
Creates the popup element that will contain the menu items for the drop-down menu.
Declaration
protected override RadElement CreatePopupElement()
Returns
A new RadDropDownMenuElement configured as the popup container.
Overrides
Dispose(bool)
Releases the unmanaged resources used by the RadDropDownMenu and optionally releases the managed resources.
Declaration
protected override void Dispose(bool disposing)
Parameters
disposing
True to release both managed and unmanaged resources; false to release only unmanaged resources.
Overrides
OnMouseWheel(Control, int)
Handles mouse wheel events to scroll the menu content when the vertical scrollbar is visible.
Declaration
public override bool OnMouseWheel(Control target, int delta)
Parameters
target
The target control for the mouse wheel event.
delta
The wheel delta value indicating scroll direction and amount.
Returns
True if the mouse wheel event was handled; otherwise, false.
Overrides
OnSizeChanged(EventArgs)
Declaration
protected override void OnSizeChanged(EventArgs e)
Parameters
e
Overrides
ShowCore(Point, int, RadDirection)
Core implementation for displaying the drop-down menu at the specified location with the given direction and offset. Handles DPI scaling, theme setup, layout calculation, and popup positioning.
Declaration
protected override void ShowCore(Point point, int ownerOffset, RadDirection popupDirection)
Parameters
point
The screen coordinates where the menu should be displayed.
ownerOffset
The offset from the owner element, in pixels.
popupDirection
The direction in which the menu should open.
Overrides