Updated DropDownButton (markdown)

master
DianeXceed 9 years ago
parent
commit
f01855dd02
  1. 43
      DropDownButton.md

43
DropDownButton.md

@ -3,31 +3,34 @@ Derives from ContentControl
The DropDownButton control is a button that when clicked displays a drop down in which you can place any custom content. The DropDownButton control is a button that when clicked displays a drop down in which you can place any custom content.
![](DropDownButton_dropdownbutton.jpg) [[DropDownButton_dropdownbutton.jpg]]
{{
```
<extToolkit:DropDownButton Content="Click Me" Margin="15" > <extToolkit:DropDownButton Content="Click Me" Margin="15" >
<extToolkit:DropDownButton.DropDownContent> <extToolkit:DropDownButton.DropDownContent>
<extToolkit:ColorCanvas /> <extToolkit:ColorCanvas />
</extToolkit:DropDownButton.DropDownContent> </extToolkit:DropDownButton.DropDownContent>
</extToolkit:DropDownButton> </extToolkit:DropDownButton>
}} ```
## Properties ### Properties
|| Property || Description | Property | Description |
| Button | Gets or sets the button used by the control. | --- | --- |
| Command | Gets or sets the command to execute when the button is clicked. | Button | Gets or sets the button used by the control. |
| 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. |
| Content | Gets or sets the object to use as the button's content. | CommandTarget | Gets or sets the element on which to raise the specified command. |
| DropDownContent | Gets or sets the object to use as the drop down button's content. | Content | Gets or sets the object to use as the button's content. |
| IsOpen | Gets or sets a value indicating whether or not the drop down is open. | DropDownContent | Gets or sets the object to use as the drop down button's content. |
| MaxDropDownHeight | Gets or sets the Maximum height of the popup in the control. Default is SystemParameters.PrimaryScreenHeight / 2. | IsOpen | Gets or sets a value indicating whether or not the drop down is open. |
| MaxDropDownHeight | Gets or sets the Maximum height of the popup in the control. Default is SystemParameters.PrimaryScreenHeight / 2. |
## Events ### Events
|| Event || Description | Event | Description |
| Click | Raised when the button is clicked. | --- | --- |
| Closed | Raised when the DropDownButton dropdown closes. | Click | Raised when the button is clicked. |
| Opened | Raised when the DropDownButton dropdown opens. | Closed | Raised when the DropDownButton dropdown closes. |
| Opened | Raised when the DropDownButton dropdown opens. |
**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