Back to Devexpress

DropDownButton Class

wpf-devexpress-dot-xpf-dot-core-44785630.md

latest4.8 KB
Original Source

DropDownButton Class

Represents a dropdown button control.

Namespace : DevExpress.Xpf.Core

Assembly : DevExpress.Xpf.Core.v25.2.dll

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
[DXLicenseWpfEditors]
public class DropDownButton :
    DropDownButtonBase
vb
<DXLicenseWpfEditors>
Public Class DropDownButton
    Inherits DropDownButtonBase

Remarks

The DropDownButton control is a button that displays a dropdown window on click.

You can embed any custom content in the DropDownButton ‘s dropdown. The following example demonstrates a TrackBarEdit control embedded in a DropDownButton ‘s dropdown:

xaml
<dx:DropDownButton Height="25" Width="175" Content="DropdownButton">
    <dxe:TrackBarEdit Height="30">
        <dxe:TrackBarEdit.StyleSettings>
            <dxe:TrackBarZoomRangeStyleSettings />
        </dxe:TrackBarEdit.StyleSettings>
    </dxe:TrackBarEdit>
</dx:DropDownButton>

Customize Appearance

  1. Glyph, GlyphHeight, GlyphWidth
  2. ArrowGlyph, ArrowAlignment, ArrowPadding
  3. Background, Foreground, FontSize
  4. Height, BorderBrush, BorderThickness, CornerRadius, Width
xaml
<Window ...
    xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core">
    <dx:DropDownButton Background="#FFE9EBEC" BorderThickness="2" BorderBrush="#FF0D3A50"
                       CornerRadius="5" Height="30" Width="150" Content="Upload" FontSize="10" 
                       Foreground="#ff505050" Glyph="{dx:DXImage SvgImages/Arrows/MoveUp.svg}" 
                       GlyphHeight="20" GlyphWidth="20"
                       ArrowGlyph="{dx:SvgImageSource Uri='pack://application:,,,/DevExpress.Images.v25.2;component/SvgImages/Icon Builder/Actions_Arrow3Down.svg', Size='15,15'}"/>
</Window>

Tip

Refer to the following topic for more information: Appearance Customization.

Inheritance

Show 13 items

Object DispatcherObject DependencyObject Visual UIElement FrameworkElement Control ContentControl ButtonBase Button SimpleButton DropDownButtonBase DropDownButton

See Also

DropDownButton Members

DevExpress.Xpf.Core Namespace