Updated SplitButton (markdown)

master
DianeXceed 9 years ago
parent
commit
38fa83288e
  1. 37
      SplitButton.md

37
SplitButton.md

@ -3,28 +3,31 @@ Derives from Xceed.Wpf.Toolkit.DropDownButton
The SplitButton control is a button that can be clicked and also provides a drop down in which you can place any custom content within. The SplitButton control is a button that can be clicked and also provides a drop down in which you can place any custom content within.
![](SplitButton_splitbutton.jpg) [[SplitButton_splitbutton.jpg]]
{{
```
<xctk:SplitButton Content="Click Me"> <xctk:SplitButton Content="Click Me">
<xctk:SplitButton.DropDownContent> <xctk:SplitButton.DropDownContent>
<xctk:ColorCanvas /> <xctk:ColorCanvas />
</xctk:SplitButton.DropDownContent> </xctk:SplitButton.DropDownContent>
</xctk:SplitButton> </xctk:SplitButton>
}} ```
## Properties ### Properties
|| Property || Description | Property | Description |
| Command | Gets or sets the command to execute when the button is clicked. | --- | --- |
| CommandParameter | Gets or sets the command parameter to pass to the **Command** when the button is clicked. | Command | Gets or sets the command to execute when the button is clicked. |
| CommandTarget | Gets or sets the element on which to raise the specified command. | CommandParameter | Gets or sets the command parameter to pass to the **Command** when the button is clicked. |
| DropDownContent | Get or sets the object to use as the drop down button's content. (Inherited from DropDownButton) | CommandTarget | Gets or sets the element on which to raise the specified command. |
| IsOpen | Gets or sets a value indicating whether the dropdown is open. (Inherited from DropDownButton) | DropDownContent | Get or sets the object to use as the drop down button's content. (Inherited from DropDownButton) |
| IsOpen | Gets or sets a value indicating whether the dropdown is open. (Inherited from DropDownButton) |
## Events ### Events
|| Event || Description | Event | Description |
| Click | Raised when the control is clicked (Inherited from DropDownButton) | --- | --- |
| Opened | Raised when the DropDownButton dropdown has opened. (Inherited from DropDownButton) | Click | Raised when the control is clicked (Inherited from DropDownButton) |
| Closed | Raised when the DropDownButton dropdown has closed. (Inherited from DropDownButton) | Opened | Raised when the DropDownButton dropdown has opened. (Inherited from DropDownButton) |
| Closed | Raised when the DropDownButton dropdown has closed. (Inherited from DropDownButton) |
**Support this project, check out the [Plus Edition](https://xceed.com/xceed-toolkit-plus-for-wpf/).** ---
--- **Support this project, check out the [Plus Edition](https://xceed.com/xceed-toolkit-plus-for-wpf/).**
Loading…
Cancel
Save