The RadMaskedDateTimeInput represents the basic control that can be used to restrict the input of currency values.
Note |
|---|
In order to use the RadMaskedDateTimeInput control in your projects you have to add references to
the following assemblies:
- Telerik.Windows.Controls
- Telerik.Windows.Controls.Input
You can find more info here.
|
Here is a simple definition of a RadMaskedDateTimeInput control:
CopyXAML
<telerik:RadMaskedDateTimeInput x:Name="radMaskedDateTimeInput"
Width="200"
Margin="20 20 20 10"
Culture="en-US"
EmptyContent="Enter digits"
InputBehavior="Replace"
Mask="dd-MM-yyyy"
SelectionOnFocus="SelectAll"
TextMode="PlainText"
UpdateValueEvent="LostFocus" /> You can further restrict the user input by setting the FormatString property.
CopyXAML
<telerik:RadMaskedDateTimeInput x:Name="radMaskedDateTimeInput"
HorizontalAlignment="Center"
Culture="en-US"
FormatString="{}Day: {0:dd}, Month: {0:MM}, Year: {0:yyyy}"
InputBehavior="Replace"
Mask="dd-MM-yyyy"
SelectionOnFocus="SelectAll"
TextMode="PlainText"
UpdateValueEvent="LostFocus" />
See Also