New to Telerik UI for .NET MAUIStart 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.

Definition

Namespace:Telerik.Maui.Controls

Assembly:Telerik.Maui.Controls.dll

Syntax:

C#
public class RadDropDownButton : RadTemplatedButton, INotifyPropertyChanged

Inheritance: objectRadButtonBaseRadTemplatedButtonRadDropDownButton

Implements: INotifyPropertyChanged

Inherited Members RadTemplatedButton.ContentPropertyRadTemplatedButton.ContentTemplatePropertyRadTemplatedButton.TextColorPropertyRadTemplatedButton.FontFamilyPropertyRadTemplatedButton.FontSizePropertyRadTemplatedButton.FontAttributesPropertyRadTemplatedButton.TextDecorationsPropertyRadTemplatedButton.HorizontalTextAlignmentPropertyRadTemplatedButton.VerticalTextAlignmentPropertyRadTemplatedButton.ActualContentPropertyRadTemplatedButton.ContentRadTemplatedButton.ContentTemplateRadTemplatedButton.TextColorRadTemplatedButton.FontFamilyRadTemplatedButton.FontSizeRadTemplatedButton.FontAttributesRadTemplatedButton.TextDecorationsRadTemplatedButton.HorizontalTextAlignmentRadTemplatedButton.VerticalTextAlignmentRadTemplatedButton.ActualContentRadButtonBase.IsPressedPropertyRadButtonBase.IsKeyboardFocusedPropertyRadButtonBase.CommandPropertyRadButtonBase.CommandParameterPropertyRadButtonBase.StylePropertyRadButtonBase.ControlTemplatePropertyRadButtonBase.BackgroundColorPropertyRadButtonBase.BackgroundPropertyRadButtonBase.PaddingPropertyRadButtonBase.BorderColorPropertyRadButtonBase.BorderBrushPropertyRadButtonBase.BorderThicknessPropertyRadButtonBase.CornerRadiusPropertyRadButtonBase.OnPropertyChanged(string)RadButtonBase.OnHandlerChanging(HandlerChangingEventArgs)RadButtonBase.OnHandlerChanged()RadButtonBase.IsPressedRadButtonBase.IsKeyboardFocusedRadButtonBase.CommandRadButtonBase.CommandParameterRadButtonBase.StyleRadButtonBase.ControlTemplateRadButtonBase.BackgroundColorRadButtonBase.BackgroundRadButtonBase.PaddingRadButtonBase.BorderColorRadButtonBase.BorderBrushRadButtonBase.BorderThicknessRadButtonBase.CornerRadiusRadButtonBase.IsEnabledCoreRadButtonBase.ClickedRadButtonBase.PressedRadButtonBase.Released...

Constructors

Initializes a new instance of the RadDropDownButton class.

C#
public RadDropDownButton()

Fields

Identifies the ActualDropDownIndicatorStyle bindable property.

C#
public static readonly BindableProperty ActualDropDownIndicatorStyleProperty

AutoOpenDelayProperty

BindableProperty

Identifies the AutoOpenDelay bindable property.

C#
public static readonly BindableProperty AutoOpenDelayProperty

Identifies the DropDownAnimationDuration bindable property.

C#
public static readonly BindableProperty DropDownAnimationDurationProperty

Identifies the DropDownAnimationEasing bindable property.

C#
public static readonly BindableProperty DropDownAnimationEasingProperty

Identifies the DropDownAnimation bindable property.

C#
public static readonly BindableProperty DropDownAnimationProperty

Identifies the DropDownBackgroundColor bindable property.

C#
public static readonly BindableProperty DropDownBackgroundColorProperty

Identifies the DropDownBorderColor bindable property.

C#
public static readonly BindableProperty DropDownBorderColorProperty

Identifies the DropDownBorderThickness bindable property.

C#
public static readonly BindableProperty DropDownBorderThicknessProperty

Identifies the DropDownContentPadding bindable property.

C#
public static readonly BindableProperty DropDownContentPaddingProperty

DropDownContentProperty

BindableProperty

Identifies the DropDownContent bindable property.

C#
public static readonly BindableProperty DropDownContentProperty

Identifies the DropDownContentTemplate bindable property.

C#
public static readonly BindableProperty DropDownContentTemplateProperty

Identifies the DropDownCornerRadius bindable property.

C#
public static readonly BindableProperty DropDownCornerRadiusProperty

DropDownHeightProperty

BindableProperty

Identifies the DropDownHeight bindable property.

C#
public static readonly BindableProperty DropDownHeightProperty

Identifies the DropDownHorizontalOffset bindable property.

C#
public static readonly BindableProperty DropDownHorizontalOffsetProperty

Identifies the DropDownIndicatorPosition bindable property.

C#
public static readonly BindableProperty DropDownIndicatorPositionProperty

Identifies the DropDownIndicatorStyle bindable property.

C#
public static readonly BindableProperty DropDownIndicatorStyleProperty

Identifies the DropDownMaxHeight bindable property.

C#
public static readonly BindableProperty DropDownMaxHeightProperty

DropDownMaxWidthProperty

BindableProperty

Identifies the DropDownMaxWidth bindable property.

C#
public static readonly BindableProperty DropDownMaxWidthProperty

Identifies the DropDownMinHeight bindable property.

C#
public static readonly BindableProperty DropDownMinHeightProperty

DropDownMinWidthProperty

BindableProperty

Identifies the DropDownMinWidth bindable property.

C#
public static readonly BindableProperty DropDownMinWidthProperty

Identifies the DropDownPlacement bindable property.

C#
public static readonly BindableProperty DropDownPlacementProperty

Identifies the DropDownVerticalOffset bindable property.

C#
public static readonly BindableProperty DropDownVerticalOffsetProperty

DropDownWidthProperty

BindableProperty

Identifies the DropDownWidth bindable property.

C#
public static readonly BindableProperty DropDownWidthProperty

Identifies the IsDropDownIndicatorVisible bindable property.

C#
public static readonly BindableProperty IsDropDownIndicatorVisibleProperty

IsOpenProperty

BindableProperty

Identifies the IsOpen bindable property.

C#
public static readonly BindableProperty IsOpenProperty

Properties

Gets the actual style applied to the drop-down indicator, combining user-defined and default styles.

C#
public Style ActualDropDownIndicatorStyle { get; }

Gets or sets the delay before the drop-down automatically opens when the pointer hovers over the button. A value of Zero disables the auto-open behavior. This feature is only applicable on desktop platforms (Windows and macOS).

C#
public TimeSpan AutoOpenDelay { get; set; }

Gets or sets the animation of the drop-down relative to the button.

C#
public PopupAnimationType DropDownAnimation { get; set; }

Gets or sets the duration in milliseconds for the drop-down open and close animations. This value is used for both opening and closing animations when AnimationType is not None.

C#
public int DropDownAnimationDuration { get; set; }
Property Value:

The animation duration in milliseconds.

Gets or sets the easing function used for drop-down opening and closing animations. This determines the acceleration curve for the animation when AnimationType is not None.

C#
[TypeConverter(typeof(EasingTypeConverter))]
public Easing DropDownAnimationEasing { get; set; }
Property Value:

The Easing function for animations. The default value is .

Gets or sets the background color of the drop-down.

C#
public Color DropDownBackgroundColor { get; set; }

Gets or sets the border color of the drop-down.

C#
public Color DropDownBorderColor { get; set; }

Gets or sets the border thickness of the drop-down.

C#
public Thickness DropDownBorderThickness { get; set; }

Gets or sets the content displayed inside the drop-down.

C#
public View DropDownContent { get; set; }

Gets or sets the padding of the drop-down content.

C#
public Thickness DropDownContentPadding { get; set; }

Gets or sets the DataTemplate used to display the drop-down content.

C#
public DataTemplate DropDownContentTemplate { get; set; }

Gets or sets the corner radius of the drop-down.

C#
public Thickness DropDownCornerRadius { get; set; }

Gets or sets the height of the drop-down.

C#
public double DropDownHeight { get; set; }

Gets or sets the horizontal offset of the drop-down relative to the button.

C#
public double DropDownHorizontalOffset { get; set; }

Gets or sets the position of the drop-down indicator relative to the button content.

C#
public DropDownButtonIndicatorPosition DropDownIndicatorPosition { get; set; }

Gets or sets the style applied to the drop-down indicator. The target type of the style is .

C#
public Style DropDownIndicatorStyle { get; set; }

Gets or sets the maximum height of the drop-down.

C#
public double DropDownMaxHeight { get; set; }

Gets or sets the maximum width of the drop-down.

C#
public double DropDownMaxWidth { get; set; }

Gets or sets the minimum height of the drop-down.

C#
public double DropDownMinHeight { get; set; }

Gets or sets the minimum width of the drop-down.

C#
public double DropDownMinWidth { get; set; }

Gets or sets the placement position of the drop-down relative to the button.

C#
public PlacementMode DropDownPlacement { get; set; }

Gets or sets the vertical offset of the drop-down relative to the button.

C#
public double DropDownVerticalOffset { get; set; }

Gets or sets the width of the drop-down. When not explicitly set, the drop-down width fits its content.

C#
public double DropDownWidth { get; set; }

Gets or sets a value indicating whether the drop-down indicator is visible.

C#
public bool IsDropDownIndicatorVisible { get; set; }

Gets or sets a value indicating whether the drop-down is open.

C#
public bool IsOpen { get; set; }

Methods

C#
protected override void ChangeVisualState()

Overrides: RadButtonBase.ChangeVisualState()

C#
protected override void OnApplyTemplate()

Overrides: RadButtonBase.OnApplyTemplate()

Events

Raised when the drop-down has fully closed, including the completion of any close animation.

C#
public event EventHandler Closed

Raised when the drop-down has fully opened, including the completion of any open animation.

C#
public event EventHandler Opened

Raised when the IsOpen property is changing to true. Set Cancel to true to prevent the drop-down from opening.

C#
public event EventHandler<CancelEventArgs> Opening