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