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

Represents a customizable drop-down button that combines the functionalities of a standard button and a pop-up. The RadDropDownButton allows for displaying a drop-down content area when clicked, enabling users to select options or display additional information. This control offers features such as:

  • Configurable drop-down content and templates
  • Options to manage the button's open and close behaviors, including automatic closing on Escape or Enter key presses
  • Control of visibility, position, and dimensions of the drop-down area
  • Events to handle opening and closing of the drop-down, providing a rich user interaction experience.

The RadDropDownButton is designed for use in UI scenarios where hierarchical options or extended actions need to be displayed without cluttering the main interface.

Definition

Constructors

Initializes a new instance of the RadDropDownButton class.

C#
public RadDropDownButton()

Fields

AutoOpenDelayProperty

DependencyProperty

Identifies the AutoOpenDelay property.

C#
public static readonly DependencyProperty AutoOpenDelayProperty

CloseOnEnterProperty

DependencyProperty

Identifies the CloseOnEnter property.

C#
public static readonly DependencyProperty CloseOnEnterProperty

CloseOnEscapeProperty

DependencyProperty

Identifies the CloseOnEscape property.

C#
public static readonly DependencyProperty CloseOnEscapeProperty

Identifies the CloseOnPopupMouseLeftButtonUp property.

C#
public static readonly DependencyProperty CloseOnPopupMouseLeftButtonUpProperty

Identifies the DropDownButtonPosition property.

C#
public static readonly DependencyProperty DropDownButtonPositionProperty

Identifies the DropDownClosed property.

C#
public static readonly RoutedEvent DropDownClosedEvent

DropDownContentProperty

DependencyProperty

Identifies the DropDownContent property.

C#
public static readonly DependencyProperty DropDownContentProperty

Identifies the DropDownContentTemplate property.

C#
public static readonly DependencyProperty DropDownContentTemplateProperty

Identifies the DropDownContentTemplateSelector property.

C#
public static readonly DependencyProperty DropDownContentTemplateSelectorProperty

DropDownHeightProperty

DependencyProperty

Identifies the PopupHeight property.

C#
public static readonly DependencyProperty DropDownHeightProperty

Identifies the DropDownHorizontalOffset property.

C#
public static readonly DependencyProperty DropDownHorizontalOffsetProperty

Identifies the DropDownContent property.

C#
public static readonly DependencyProperty DropDownIndicatorVisibilityProperty

DropDownMaxHeightProperty

DependencyProperty

Identifies the PopupMaxHeight property.

C#
public static readonly DependencyProperty DropDownMaxHeightProperty

DropDownMaxWidthProperty

DependencyProperty

Identifies the PopupMaxWidth property.

C#
public static readonly DependencyProperty DropDownMaxWidthProperty

DropDownMinHeightProperty

DependencyProperty

Identifies the DropDownMinHeight property.

C#
public static readonly DependencyProperty DropDownMinHeightProperty

DropDownMinWidthProperty

DependencyProperty

Identifies the DropDownMinWidth property.

C#
public static readonly DependencyProperty DropDownMinWidthProperty

Identifies the DropDownOpened property.

C#
public static readonly RoutedEvent DropDownOpenedEvent

Identifies the DropDownOpening property.

C#
public static readonly RoutedEvent DropDownOpeningEvent

DropDownPlacementProperty

DependencyProperty

Identifies the DropDownPlacement property.

C#
public static readonly DependencyProperty DropDownPlacementProperty

Identifies the DropDownVerticalOffset property.

C#
public static readonly DependencyProperty DropDownVerticalOffsetProperty

DropDownWidthProperty

DependencyProperty

Identifies the PopupWidth property.

C#
public static readonly DependencyProperty DropDownWidthProperty

IsOpenProperty

DependencyProperty

Identifies the IsOpen property.

C#
public static readonly DependencyProperty IsOpenProperty

KeepOpenProperty

DependencyProperty

Identifies the KeepOpen property.

C#
public static readonly DependencyProperty KeepOpenProperty

PopupAnimationProperty

DependencyProperty

Identifies the PopupAnimation property.

C#
public static readonly DependencyProperty PopupAnimationProperty

Identifies the PopupPlacementTarget property.

C#
public static readonly DependencyProperty PopupPlacementTargetProperty

Properties

Gets or sets whether the popup opens when mouse hovers for pointed milliseconds. Value of zero means no auto open. This is a dependency property.

C#
[Browsable(false)]
public TimeSpan AutoOpenDelay { get; set; }

Gets or sets whether the popup closes when the Enter key toggles. This is a dependency property.

C#
public bool CloseOnEnter { get; set; }

Gets or sets whether the popup closes when the Escape key toggles. This is a dependency property.

C#
public bool CloseOnEscape { get; set; }

Gets or sets whether the Popup should be closed when the user clicks on the DropDownContent. The closing is executed on MouseLeftButtonUp event of the Popup. This is a dependency property.

C#
public bool CloseOnPopupMouseLeftButtonUp { get; set; }

Gets or sets the position of the drop down indicator. This is a dependency property.

C#
public DropDownButtonPosition DropDownButtonPosition { get; set; }

Gets or sets the drop-down area's content. This is a dependency property.

C#
public object DropDownContent { get; set; }

Gets or sets the template used to display the drop-down content of the button. This is a dependency property.

C#
public DataTemplate DropDownContentTemplate { get; set; }

Gets or sets the template-selector used to display the drop-down content of the button. This is a dependency property.

C#
public DataTemplateSelector DropDownContentTemplateSelector { get; set; }

Gets or sets the Height of the drop-down area. This is a dependency property.

C#
public double DropDownHeight { get; set; }

Gets or sets the horizontal offset of the drop-down area. This is a dependency property.

C#
public double DropDownHorizontalOffset { get; set; }

Gets or sets whether the DropDown indicator is visible. This is a dependency property.

C#
public Visibility DropDownIndicatorVisibility { get; set; }

Gets or sets the MaxHeight of the drop-down area. This is a dependency property.

C#
public double DropDownMaxHeight { get; set; }

Gets or sets the MaxWidth of the drop-down area. This is a dependency property.

C#
public double DropDownMaxWidth { get; set; }

Gets or sets the MinHeight of the drop-down area. This is a dependency property.

C#
public double DropDownMinHeight { get; set; }

Gets or sets the MinWidth of the drop-down area. This is a dependency property.

C#
public double DropDownMinWidth { get; set; }

Gets or sets the position of the drop-down area. This is a dependency property.

C#
public PlacementMode DropDownPlacement { get; set; }

Gets or sets the vertical offset of the drop-down area. This is a dependency property.

C#
public double DropDownVerticalOffset { get; set; }

Gets or sets the Width of the drop-down area. This is a dependency property.

C#
public double DropDownWidth { get; set; }

Gets or sets whether the drop-down area is opened. This is a dependency property.

C#
public bool IsOpen { get; set; }

Gets or sets whether the drop-down area should remain opened. This is a dependency property.

C#
public bool KeepOpen { get; set; }

PopupAnimation

PopupAnimation

Gets or sets the animation that will be used for the popup element.

C#
public PopupAnimation PopupAnimation { get; set; }

PopupPlacementTarget

FrameworkElement

Get/set the placement for the popup element.

C#
public FrameworkElement PopupPlacementTarget { get; set; }

Methods

Initializes the position of the DropDown indicator and correct the placement of the Popup window.

C#
protected virtual void ApplyDropDownButtonPosition()

Applies the configured popup offsets to the drop-down popup.

C#
protected virtual void ApplyPopupOffsets()

Set the placement of the Popup window.

C#
protected virtual void ApplyPopupPlacement()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

C#
public void Dispose()

Implements: IDisposable.Dispose()

Releases unmanaged resources and performs other cleanup operations before the RadDropDownButton is reclaimed by garbage collection.

C#
protected override void Finalize()

Raises the event.

C#
protected override void OnActivate()

Overrides: RadButton.OnActivate()

Invoked whenever application code or internal processes (such as a rebuilding layout pass) call .

C#
public override void OnApplyTemplate()

Overrides: RadButton.OnApplyTemplate()

Invoke the base OnClick and toggle the IsOpen property.

C#
protected override void OnClick()

Overrides: RadButton.OnClick()

Creates a RadDropDownButtonAutomationPeer.

C#
protected override AutomationPeer OnCreateAutomationPeer()
Returns:

AutomationPeer

Overrides: RadButton.OnCreateAutomationPeer()

Called when the DropDownContent property of a RadDropDownButton changes.

C#
protected virtual void OnDropDownContentChanged(object oldValue, object newValue)
Parameters:oldValueobject

The old value of the DropDownContent property.

newValueobject

The new value of the DropDownContent property.

Called when the DropDownContentTemplate property of a RadDropDownButton changes.

C#
protected virtual void OnDropDownContentTemplateChanged(DataTemplate oldValue, DataTemplate newValue)
Parameters:oldValueDataTemplate

The old value of the DropDownContentTemplate property.

newValueDataTemplate

The new value of the DropDownContentTemplate property.

Called when the DropDownContentTemplateSelector property of a RadDropDownButton changes.

C#
protected virtual void OnDropDownContentTemplateSelectorChanged(DataTemplateSelector oldValue, DataTemplateSelector newValue)
Parameters:oldValueDataTemplateSelector

The old value of the DropDownContentTemplateSelector property.

newValueDataTemplateSelector

The new value of the DropDownContentTemplateSelector property.

Called when the DropDownPlacement property of a RadDropDownButton changes.

C#
protected virtual void OnDropDownPlacementChanged(DataTemplate oldValue, DataTemplate newValue)
Parameters:oldValueDataTemplate

The old value of the DropDownPlacement property.

newValueDataTemplate

The new value of the DropDownPlacement property.

Invocated when the hover happens.

C#
protected override void OnHover()

Overrides: RadButton.OnHover()

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.

Overrides: RadButton.OnInitialized(EventArgs)

Called when [is open changed].

C#
protected virtual void OnIsOpenChanged(bool newValue, bool oldValue)
Parameters:newValuebool

The new value.

oldValuebool

The old value.

Closes the popup on Escape key.

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

Called when an element loses keyboard focus.

C#
protected override void OnLostKeyboardFocus(KeyboardFocusChangedEventArgs e)
Parameters:eKeyboardFocusChangedEventArgs

The event data for the event.

Provides class handling for the routed event that occurs when the left mouse button is pressed while the mouse pointer is over this control.

C#
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
Parameters:eMouseButtonEventArgs

The event data.

Invoked when an unhandled  routed event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

C#
protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)
Parameters:eMouseButtonEventArgs

The MouseButtonEventArgs that contains the event data. The event data reports that the left mouse button was released.

C#
protected override void OnMouseWheel(MouseWheelEventArgs e)
Parameters:eMouseWheelEventArgs

Events

DropDownClosed

RoutedEventHandler

Occurs when the Popup is closed.

C#
public event RoutedEventHandler DropDownClosed

DropDownOpened

RoutedEventHandler

Occurs when the Popup is opened.

C#
public event RoutedEventHandler DropDownOpened

DropDownOpening

RoutedEventHandler

Occurs when the Popup is opening.

C#
public event RoutedEventHandler DropDownOpening
In this article
DefinitionConstructorsRadDropDownButton()FieldsAutoOpenDelayPropertyCloseOnEnterPropertyCloseOnEscapePropertyCloseOnPopupMouseLeftButtonUpPropertyDropDownButtonPositionPropertyDropDownClosedEventDropDownContentPropertyDropDownContentTemplatePropertyDropDownContentTemplateSelectorPropertyDropDownHeightPropertyDropDownHorizontalOffsetPropertyDropDownIndicatorVisibilityPropertyDropDownMaxHeightPropertyDropDownMaxWidthPropertyDropDownMinHeightPropertyDropDownMinWidthPropertyDropDownOpenedEventDropDownOpeningEventDropDownPlacementPropertyDropDownVerticalOffsetPropertyDropDownWidthPropertyIsOpenPropertyKeepOpenPropertyPopupAnimationPropertyPopupPlacementTargetPropertyPropertiesAutoOpenDelayCloseOnEnterCloseOnEscapeCloseOnPopupMouseLeftButtonUpDropDownButtonPositionDropDownContentDropDownContentTemplateDropDownContentTemplateSelectorDropDownHeightDropDownHorizontalOffsetDropDownIndicatorVisibilityDropDownMaxHeightDropDownMaxWidthDropDownMinHeightDropDownMinWidthDropDownPlacementDropDownVerticalOffsetDropDownWidthIsOpenKeepOpenPopupAnimationPopupPlacementTargetMethodsApplyDropDownButtonPosition()ApplyPopupOffsets()ApplyPopupPlacement()Dispose()Finalize()OnActivate()OnApplyTemplate()OnClick()OnCreateAutomationPeer()OnDropDownContentChanged(object, object)OnDropDownContentTemplateChanged(DataTemplate, DataTemplate)OnDropDownContentTemplateSelectorChanged(DataTemplateSelector, DataTemplateSelector)OnDropDownPlacementChanged(DataTemplate, DataTemplate)OnHover()OnInitialized(EventArgs)OnIsOpenChanged(bool, bool)OnKeyDown(KeyEventArgs)OnLostKeyboardFocus(KeyboardFocusChangedEventArgs)OnMouseLeftButtonDown(MouseButtonEventArgs)OnMouseLeftButtonUp(MouseButtonEventArgs)OnMouseWheel(MouseWheelEventArgs)EventsDropDownClosedDropDownOpenedDropDownOpening
Not finding the help you need?
Contact Support