Number Box
Inherits from TextBox​
The Number Box view provides an input box for the user to enter a decimal number. It ensures the value is a valid decimal number during validation. The number may be negative and may or may not contain a fractional amount. However, if it does contain a decimal separator then it must also include at least one digit after the separator.

Properties

See TextBox for available properties.

Example

1
<Rock:FieldContainer>
2
<Rock:NumberBox Label="Rock Number Box"
3
IsRequired="false"
4
Text="-1325" />
5
</Rock:FieldContainer>
Copied!
Copy link