Updated CalculatorUpDown (markdown)

master
DianeXceed 9 years ago
parent
commit
11f8bb3bc4
  1. 15
      CalculatorUpDown.md

15
CalculatorUpDown.md

@ -9,32 +9,34 @@ The CalculatorUpDown provides a TextBox with button spinners that allow incremen
* [Watermark](#watermark) * [Watermark](#watermark)
* [Properties/Events](#properties) * [Properties/Events](#properties)
![](CalculatorUpDown_calculatorupdown.jpg) [[CalculatorUpDown_calculatorupdown.jpg]]
When using the CalculatorUpDown 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. You can also specify if the user can directly edit the values in the text box by setting the **IsEditable** property. If you would like to get the actual formatted string representation of the value, you can use the **Text** property. When using the CalculatorUpDown 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. You can also specify if the user can directly edit the values in the text box by setting the **IsEditable** property. If you would like to get the actual formatted string representation of the value, you can use the **Text** property.
### Applying Format Strings ### Applying Format Strings
**Default:** **Default:**
![](CalculatorUpDown_calculatorupdown_default.jpg)
[[CalculatorUpDown_calculatorupdown_default.jpg]]
``` ```
<xctk:CalculatorUpDown Value="1564.6749586" /> <xctk:CalculatorUpDown Value="1564.6749586" />
``` ```
**Floating Point:** **Floating Point:**
![](CalculatorUpDown_calculatorupdown_float.jpg)
[[CalculatorUpDown_calculatorupdown_float.jpg]]
``` ```
<xctk:CalculatorUpDown FormatString="F3" Value="1564.6749586" Increment=".001" Maximum="200000.599" /> <xctk:CalculatorUpDown FormatString="F3" Value="1564.6749586" Increment=".001" Maximum="200000.599" />
``` ```
**Currency:** **Currency:**
![](CalculatorUpDown_calculatorupdown_currency.jpg)
[[CalculatorUpDown_calculatorupdown_currency.jpg]]
``` ```
<xctk:CalculatorUpDown FormatString="C2" Value="1564.6749586" Increment=".5" Maximum="5000.50" Minimum="50.01" /> <xctk:CalculatorUpDown FormatString="C2" Value="1564.6749586" Increment=".5" Maximum="5000.50" Minimum="50.01" />
``` ```
### Supported Format Strings ### Supported Format Strings
| Format Specifier | Name | | Format Specifier | Name |
| --- | --- | | --- | --- |
| C | Currency | | C | Currency |
@ -44,10 +46,9 @@ When using the CalculatorUpDown in data binding scenarios, bind your object's va
| P | Percent | | P | Percent |
### Watermark ### Watermark
You can provide a **Watermark** to show text in place of a NULL **Value**. You can provide a **Watermark** to show text in place of a NULL **Value**.
![](CalculatorUpDown_calculatorupdown_watermark.jpg) [[CalculatorUpDown_calculatorupdown_watermark.jpg]]
``` ```
<xctk:CalculatorUpDown Watermark="Enter Value" /> <xctk:CalculatorUpDown Watermark="Enter Value" />
``` ```

Loading…
Cancel
Save