- 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 | Constant Value | Summary |
---|---|---|
ArrowBrushProperty |
Identifies the
ArrowBrush dependency property.static
|
|
Arrow |
Identifies the
ArrowMouseOverBrush dependency property.static
|
|
Arrow |
Identifies the
ArrowPressedBrush dependency property.static
|
|
Button |
Identifies the
ButtonArrowStyle dependency property.static
|
|
ButtonStyleProperty |
Identifies the
ButtonStyle dependency property.static
|
|
ClickEvent |
Identifies the
Click routed event.static
|
|
Command |
Identifies the
CommandParameter dependency property.static
|
|
CommandProperty |
Identifies the
Command dependency property.static
|
|
Command |
Identifies the
CommandTarget dependency property.static
|
|
ExtraTagProperty |
Identifies the
ExtraTag dependency property.static
|
|
IconProperty |
Identifies the
Icon dependency property.static
|
|
IconTemplateProperty |
Identifies the
IconTemplate dependency property.static
|
|
OrientationProperty |
Identifies the
Orientation dependency property.static
|
Properties
Name | Value | 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 | Value | Summary |
---|---|---|
OnApplyTemplate |
void |