Updated ShortUpDown (markdown)

master
DianeXceed 9 years ago
parent
commit
4fbbf21c7c
  1. 44
      ShortUpDown.md

44
ShortUpDown.md

@ -1,25 +1,28 @@
# ShortUpDown
The ShortUpDown control provides a TextBox with button spinners that allow incrementing and decrementing Nullable<short> values by using the spinner buttons, keyboard up/down arrows, or mouse wheel.
* [Usage](#usage)
* [Watermark](#watermarks)
* [Watermark](#watermark)
* [Properties](#properties)
* [Events](#events)
{anchor:usage}
## Usage
### Usage
When using the ShortUpDown in data binding scenarios, bind your object's value to the **Value** property. You can specify how much to increment the value by setting the **Increment** property. You can control the minimum and maximum allowed values by setting the **Minimum** and the **Maximum** properties. Use IsReadOnly to determine whether the control is read only. If you would like to get the actual formatted string representation of the value, you can use the **Text** property.
{{
<xctk:ShortUpDown Value="156" />}}
{anchor:watermarks}
## Watermark
```
<xctk:ShortUpDown Value="156" />
```
### Watermark
You can provide a **Watermark** to show text in place of a NULL **Value**.
{{
```
<xctk:ShortUpDown Watermark="Enter value" />
}}
{anchor:properties}
## Properties
|| Property || Description
```
### Properties
| Property | Description |
| --- | --- |
| AllowSpin | Gets or sets the ability to perform increment/decrement operations via the keyboard, button spinners, or mouse wheel. (Inherited from UpDownBase)
| AllowTextInput | Determines if the editable part of the control can be edited. The editable part does not include buttons or spinners, it is typically the text part.
| AutoMoveFocus | Gets or sets if the focus can move from this control to other controls. (Inherited from NumericUpDown)
@ -43,11 +46,12 @@ You can provide a **Watermark** to show text in place of a NULL **Value**.
| Value | Gets or sets the numeric value. (Inherited from UpDownBase)
| Watermark | Gets or sets the object to use as a watermark if the **Value** is null. (Inherited from InputBase)
| WatermarkTemplate| Gets or sets the DatTemplate to use for the **Watermark**. (Inherited from InputBase)
{anchor:events}
## Events
|| Event || Description
| InputValidationError | Occurs when the Text cannot be converted to a valid Value. (Inherited from UpDownBase)
| ValueChanged | Raised when the Value changes. (Inherited from UpDownBase)
**Support this project, check out the [Plus Edition](http://wpftoolkit.com).**
---
### Events
| Event | Description |
| --- | --- |
| InputValidationError | Occurs when the Text cannot be converted to a valid Value. (Inherited from UpDownBase) |
| ValueChanged | Raised when the Value changes. (Inherited from UpDownBase) |
---
**Support this project, check out the [Plus Edition](http://wpftoolkit.com).**
Loading…
Cancel
Save