NumericTextBox
The NumericTextBox
behavior makes it easy to allow specific numeric input on a TextBox.
- Add the following XML namespaces:
xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
xmlns:catel="http://schemas.catelproject.com"
- Use the following definition:
<TextBox Text={Binding Amount}">
<i:Interaction.Behaviors>
<catel:NumericTextBox />
</i:Interaction.Behaviors>
</TextBox>
Use the properties on the behavior to customize the behavior to your needs
Contributions
We would like to thank the following contributors:
Want to contribute to the documentation? We have a guide for that!
Questions
Have a question about Catel? Use StackOverflow with the Catel tag!