Back to Devexpress

SplitButton Class

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

latest4.8 KB
Original Source

SplitButton Class

A split button control.

Namespace : DevExpress.Xpf.Core

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

NuGet Package : DevExpress.Wpf.Core

Declaration

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

Remarks

The SplitButton control consists of two buttons.

  • Main button
  • Dropdown button

The SplitButton control offers the following features.

  • Total control over the main button content

  • Custom dropdown content

Customize Appearance

  1. Glyph, GlyphHeight, GlyphWidth
  2. Background, Foreground, FontSize
  3. ArrowGlyph, ArrowAlignment, ArrowPadding
  4. Height, BorderBrush, BorderThickness, CornerRadius, Width
  5. SeparatorThickness
  6. ArrowBackground, ArrowBorderBrush, ArrowBorderThickness, ArrowCornerRadius
xaml
<Window ...
    xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core">
    <dx:SplitButton 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'}"
                    ArrowBackground="#FFE9EBEC" ArrowBorderBrush="#FF0D3A50" ArrowBorderThickness="2"/>
</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 SplitButton

See Also

SplitButton Members

DevExpress.Xpf.Core Namespace