SplitButton Class
Namespace
MahApps.Metro.Controls
Interfaces
  • ICommandSource
Base Types
  • ComboBox
graph BT Type-->Base0["ComboBox"] Type-.->Interface0["ICommandSource"] Type["SplitButton"] class Type type-node

Syntax

[ContentProperty(nameof(ItemsSource))]
[TemplatePart(Name = "PART_Container", Type = typeof(Grid))]
[TemplatePart(Name = "PART_Button", Type = typeof(Button))]
[TemplatePart(Name = "PART_ButtonContent", Type = typeof(ContentControl))]
[TemplatePart(Name = "PART_Popup", Type = typeof(Popup))]
[TemplatePart(Name = "PART_Expander", Type = typeof(Button))]
[StyleTypedProperty(Property = nameof(ButtonStyle), StyleTargetType = typeof(Button))]
[StyleTypedProperty(Property = nameof(ButtonArrowStyle), StyleTargetType = typeof(Button))]
public class SplitButton : ComboBox, ICommandSource

Attributes

Type Description
ContentProperty
TemplatePart
TemplatePart
TemplatePart
TemplatePart
TemplatePart
StyleTypedProperty
StyleTypedProperty

Events

Name Type Summary
Click RoutedEventHandler

Fields

Name Field Type Constant Value Summary
ArrowBrushProperty DependencyProperty
Identifies the ArrowBrush dependency property.
static
ArrowMouseOverBrushProperty DependencyProperty
Identifies the ArrowMouseOverBrush dependency property.
static
ArrowPressedBrushProperty DependencyProperty
Identifies the ArrowPressedBrush dependency property.
static
ButtonArrowStyleProperty DependencyProperty
Identifies the ButtonArrowStyle dependency property.
static
ButtonStyleProperty DependencyProperty
Identifies the ButtonStyle dependency property.
static
ClickEvent RoutedEvent
Identifies the Click routed event.
static
CommandParameterProperty DependencyProperty
Identifies the CommandParameter dependency property.
static
CommandProperty DependencyProperty
Identifies the Command dependency property.
static
CommandTargetProperty DependencyProperty
Identifies the CommandTarget dependency property.
static
ExtraTagProperty DependencyProperty
Identifies the ExtraTag dependency property.
static
IconProperty DependencyProperty
Identifies the Icon dependency property.
static
IconTemplateProperty DependencyProperty
Identifies the IconTemplate dependency property.
static
OrientationProperty DependencyProperty
Identifies the Orientation dependency property.
static

Properties

Name Property Type Summary
ArrowBrush Brush
Gets or sets the foreground brush for the button arrow icon.
ArrowMouseOverBrush Brush
Gets or sets the foreground brush of the button arrow icon if the mouse is over the split button.
ArrowPressedBrush Brush
Gets or sets the foreground brush of the button arrow icon if the arrow button is pressed.
ButtonArrowStyle Style
Gets or sets the button arrow style.
ButtonStyle Style
Gets or sets the button content style.
Command ICommand
Gets or sets the command to invoke when the content button is pressed.
CommandParameter object
Gets or sets the parameter to pass to the command property.
CommandTarget IInputElement
Gets or sets the element on which to raise the specified command.
ExtraTag object
Gets or sets an extra tag.
Icon object
Gets or sets the content for the icon part.
IconTemplate DataTemplate
Gets or sets the DataTemplate for the icon part.
IsEnabledCore bool
Orientation Orientation
Gets or sets the orientation of children stacking.

Methods

Name Return Value Summary
OnApplyTemplate() void