ClassRadDropDownButtonElement
Represents a rad dropdown button element. The RadDropDownButton control is a simple wrapper for the RadDropDownButtonElement. All UI and logic functionality is implemented in RadDropDownButtonElement class. The RadDropDownButton acts to transfer events to and from its RadDropDownButtonElement instance. RadDropDownButtonElement can be nested in other telerik controls.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
[ComVisible(false)]
public class RadDropDownButtonElement : RadItem, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IDropDownMenuOwner, ISiteProvider, IItemsOwner, IImageElement
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemRadDropDownButtonElement
Derived Classes:
Implements:
Inherited Members
Constructors
RadDropDownButtonElement()
Initializes a new instance of the DropDownButtonElement class.
Declaration
public RadDropDownButtonElement()
Fields
DisplayStyleProperty
Declaration
public static RadProperty DisplayStyleProperty
Field Value
ImageAlignmentProperty
Declaration
public static RadProperty ImageAlignmentProperty
Field Value
IsDropDownShownProperty
Declaration
public static RadProperty IsDropDownShownProperty
Field Value
MouseOverStateProperty
Declaration
public static RadProperty MouseOverStateProperty
Field Value
TextAlignmentProperty
Declaration
public static RadProperty TextAlignmentProperty
Field Value
TextImageRelationProperty
Declaration
public static RadProperty TextImageRelationProperty
Field Value
layoutPanel
Declaration
protected DropDownEditorLayoutPanel layoutPanel
Field Value
mappedStyleProperties
Declaration
public static Dictionary<RadProperty, RadProperty> mappedStyleProperties
Field Value
Dictionary<RadProperty, RadProperty>
menu
Declaration
protected RadDropDownButtonPopup menu
Field Value
Properties
ActionButton
Gets the action button
Declaration
[Browsable(false)]
public RadButtonElement ActionButton { get; }
Property Value
ArrowButton
Gets the arrow button
Declaration
[Browsable(false)]
public RadArrowButtonElement ArrowButton { get; }
Property Value
ArrowButtonMinSize
Gets or sets the minimum size of the arrow button
ArrowPosition
Gets or sets a value indicating the position where the arrow button appears in drop-down button.
Declaration
[Browsable(true)]
public virtual DropDownButtonArrowPosition ArrowPosition { get; set; }
Property Value
AutoToolTip
Declaration
public override bool AutoToolTip { get; set; }
Property Value
Overrides
BorderElement
Gets the border element
Declaration
[Browsable(false)]
public BorderPrimitive BorderElement { get; }
Property Value
DisplayStyle
Specifies the logical combination of image and text primitives in the element.
Declaration
[Browsable(true)]
public DisplayStyle DisplayStyle { get; set; }
Property Value
DropDownDirection
Gets or sets a value indicating the direction in which the dropdown item emerges from its parent container.
Declaration
[Browsable(true)]
public RadDirection DropDownDirection { get; set; }
Property Value
DropDownInheritsThemeClassName
Gets or sets value indicating whether DropDownMenu will have the same class name as the owner control or its own. True means that the same class name will be used as the control that opened the dropdown.
Declaration
public bool DropDownInheritsThemeClassName { get; set; }
Property Value
Implements
DropDownMenu
Gets the drop down menu
Declaration
[Browsable(false)]
public RadDropDownMenu DropDownMenu { get; }
Property Value
ExpandArrowButton
Gets or sets the expand arrow button
Declaration
[Browsable(false)]
public bool ExpandArrowButton { get; set; }
Property Value
HasTwoColumnDropDown
Indicates whether the DropDown of the button should have two columns or one column.
Declaration
[Browsable(true)]
public bool HasTwoColumnDropDown { get; set; }
Property Value
Image
Gets or sets the image that is displayed on a button element.
Declaration
[TypeConverter(typeof(ImageTypeConverter))]
public virtual Image Image { get; set; }
Property Value
Implements
ImageAlignment
Gets or sets the alignment of image content on the drawing surface.
Declaration
public virtual ContentAlignment ImageAlignment { get; set; }
Property Value
ImageIndex
Gets or sets the image list index value of the image displayed on the button control.
Declaration
[RelatedImageList("ElementTree.Control.ImageList")]
[TypeConverter("Telerik.WinControls.UI.Design.NoneExcludedImageIndexConverter, Telerik.WinControls.UI.Design, Version=2026.1.217.48, Culture=neutral, PublicKeyToken=5bb2a467cbec794e")]
public virtual int ImageIndex { get; set; }
Property Value
Implements
ImageKey
Gets or sets the key accessor for the image in the ImageList.
Declaration
[RelatedImageList("ElementTree.Control.ImageList")]
[TypeConverter("Telerik.WinControls.UI.Design.RadImageKeyConverter, Telerik.WinControls.UI.Design, Version=2026.1.217.48, Culture=neutral, PublicKeyToken=5bb2a467cbec794e")]
public virtual string ImageKey { get; set; }
Property Value
Implements
IsDropDownShown
Gets a value indicating whether the drop down is shown
Declaration
[Browsable(false)]
public bool IsDropDownShown { get; }
Property Value
IsPressed
Gets a value indicating whether the button item is in the pressed state.
Items
Gets the Items collection where you can add and remove items from the DropDownButton.
Declaration
[RadEditItemsAction]
public RadItemOwnerCollection Items { get; }
Property Value
Implements
Layout
Declaration
[Browsable(false)]
public DropDownEditorLayoutPanel Layout { get; }
Property Value
ShowArrow
Gets or sets a value indicating whether an arrow button is displayed on the drop-down buuton.
Declaration
[Browsable(true)]
public virtual bool ShowArrow { get; set; }
Property Value
SvgImage
Gets or sets the vector image that is displayed on a button element.
TextAlignment
Gets or sets the alignment of text content on the drawing surface.
Declaration
public virtual ContentAlignment TextAlignment { get; set; }
Property Value
TextImageRelation
Gets or sets the position of text and image relative to each other.
Declaration
public virtual TextImageRelation TextImageRelation { get; set; }
Property Value
ToolTipText
Declaration
public override string ToolTipText { get; set; }
Property Value
Overrides
Methods
CreateChildElements()
Called by the element when constructed. Allows inheritors to build the element tree.
Declaration
protected override void CreateChildElements()
Overrides
CreateDropDown()
Declaration
protected virtual RadDropDownButtonPopup CreateDropDown()
Returns
DisposeManagedResources()
Releases managed resources used by this element.
Declaration
protected override void DisposeManagedResources()
Overrides
DoClick(EventArgs)
Declaration
protected override void DoClick(EventArgs e)
Parameters
e
Overrides
HideDropDown()
Hides the drop down menu.
Declaration
public virtual void HideDropDown()
InitializeFields()
Initializes the fields of this instance with their default values.
Declaration
protected override void InitializeFields()
Overrides
MapStyleProperty(RadProperty, string)
Maps a style property to another property. This method is used to map corresponding properties of LightVisualElement instances and BasePrimitive instances.
Declaration
public override RadProperty MapStyleProperty(RadProperty propertyToMap, string settingType)
Parameters
propertyToMap
An instance of the RadProperty class that represents the property to map.
settingType
Returns
An instance of the RadProperty class which represents the mapped property. If no property is found, the method returns null
Overrides
OnBubbleEvent(RadElement, RoutedEventArgs)
Determines whether the event is passed up in the control hierarchy.
Declaration
protected override void OnBubbleEvent(RadElement sender, RoutedEventArgs args)
Parameters
sender
args
Overrides
OnDropDownClosed(EventArgs)
Raises the DropDownClosed event.
Declaration
protected virtual void OnDropDownClosed(EventArgs e)
Parameters
e
OnDropDownClosing(RadPopupClosingEventArgs)
Fires when the drop-down of the button is about to close.
Declaration
protected virtual void OnDropDownClosing(RadPopupClosingEventArgs args)
Parameters
args
An instance of the RadPopupClosingEventArgs class that contains information about the event.
OnDropDownOpened(EventArgs)
Raises the DropDownOpened event.
Declaration
protected virtual void OnDropDownOpened(EventArgs e)
Parameters
e
OnDropDownOpening(CancelEventArgs)
Raises the DropDownOpening event.
Declaration
protected virtual void OnDropDownOpening(CancelEventArgs e)
Parameters
e
OnKeyDown(KeyEventArgs)
Raises the KeyDown event.
Declaration
protected override void OnKeyDown(KeyEventArgs e)
Parameters
e
The key event arguments.
Overrides
OnKeyUp(KeyEventArgs)
Raises the KeyUp event.
Declaration
protected override void OnKeyUp(KeyEventArgs e)
Parameters
e
The key event arguments.
Overrides
OnMouseUp(MouseEventArgs)
Called when a mouse button is released over the item.
Declaration
protected override void OnMouseUp(MouseEventArgs e)
Parameters
e
The mouse event arguments.
Overrides
OnPropertyChanged(RadPropertyChangedEventArgs)
Called when a property value has changed, handling item-specific property change logic including text, visual state, and animation properties.
Declaration
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Parameters
e
The property changed event arguments.
Overrides
ShouldSerializeProperty(PropertyDescriptor)
Determines whether the property defined by the provided property descriptor should be serialized.
Declaration
public override bool? ShouldSerializeProperty(PropertyDescriptor property)
Parameters
property
Returns
bool?
Overrides
ShowDropDown()
Shows the drop down menu.
Declaration
public virtual void ShowDropDown()
ShowDropDown(Point)
Shows the drop down menu at given location
Declaration
public virtual void ShowDropDown(Point location)
Parameters
location
The upper left corner of the drop down in screen coordinates
ShowDropDownOnClick()
Declaration
protected virtual void ShowDropDownOnClick()
Events
DropDownClosed
Occurs when the drop-down window has closed.
Declaration
[Browsable(true)]
public event EventHandler DropDownClosed
Event Value
DropDownClosing
Occurs when the drop-down window is about to close.
Declaration
[Browsable(true)]
public event RadPopupClosingEventHandler DropDownClosing
Event Value
DropDownOpened
Occurs when the drop-down has opened.
Declaration
[Browsable(true)]
public event EventHandler DropDownOpened
Event Value
DropDownOpening
Occurs when the drop-down is opening.
Declaration
[Browsable(true)]
public event CancelEventHandler DropDownOpening
Event Value