Updated ButtonSpinner (markdown)

master
DianeXceed 9 years ago
parent
commit
24e92f40a4
  1. 29
      ButtonSpinner.md

29
ButtonSpinner.md

@ -10,14 +10,14 @@ You can wrap any element by placing it inside the content area of the ButtonSpin
![](ButtonSpinner_buttonspinner_numeric.png)
**XAML**
{{
```
<xctk:ButtonSpinner Spin="ButtonSpinner_Spin">
<TextBox Text="0" HorizontalContentAlignment="Right" />
</xctk:ButtonSpinner>
}}
```
**Code Behind**
{{
```
private void ButtonSpinner_Spin(object sender, Microsoft.Windows.Controls.SpinEventArgs e)
{
ButtonSpinner spinner = (ButtonSpinner)sender;
@ -30,17 +30,20 @@ You can wrap any element by placing it inside the content area of the ButtonSpin
value--;
txtBox.Text = value.ToString();
}
}}
```
## Properties
|| Property || Description
| AllowSpin | Gets or sets a value indicating whether the spinner buttons are enabled.
| Content | Gets or sets the content of the ButtonSpinner.
| ShowButtonSpinner | Gets or sets a value indicating whether the ButtonSpinner is visible.
| ValidSpinDirection | Gets or sets the valid direction for the Spinner (None, Increase or Decrease). By default, Increase or Decrease. (Inherited from Spinner)
| Property | Description |
| --- | --- |
| AllowSpin | Gets or sets a value indicating whether the spinner buttons are enabled. |
| Content | Gets or sets the content of the ButtonSpinner. |
| ShowButtonSpinner | Gets or sets a value indicating whether the ButtonSpinner is visible. |
| ValidSpinDirection | Gets or sets the valid direction for the Spinner (None, Increase or Decrease). By default, Increase or Decrease. (Inherited from Spinner) |
## Events
|| Event || Description
| Spin | Raised when spinning is initiated by the end-user. (Inherited from Spinner)
| Event | Description |
| --- | --- |
| Spin | Raised when spinning is initiated by the end-user. (Inherited from Spinner) |
**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