RadControls for WPF

RadMaskedTextBox control provides full globalization support out-of-the-box through the Culture property.

The next example declares two RadMaskedTextBox controls. The first one is used for entering Bulgarian currency - the culture is set to bg-BG. The second one is used for entering DateTime data and also the culture is changed to de-DE.

CopyXAML
<Grid x:Name="LayoutRoot" Background="White">
    <StackPanel>
        <TextBlock Text="Bulgarian Currency" Margin="5 0" />
        <telerik:RadMaskedTextBox MaskType="Numeric" Mask="C4" Culture="bg-BG" Margin="0,5,0,10" />
        <TextBlock Text="German DateTime Format" Margin="5 0" />
        <telerik:RadMaskedTextBox MaskType="DateTime" Mask="D" Culture="de-DE" Margin="0,5,0,10" />
    </StackPanel>
</Grid>

See Also