New to Telerik UI for WPF? Download free 30-day trial

Globalization Support

The RadMaskedInput controls provide full globalization support out-of-the-box through the Culture property.

Figure 1: Full globalization support

WPF RadMaskedInput Full globalization support

The next example declares a RadMaskedCurrencyInput and a RadMaskedDateTimeInput 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.

Example 1: Setting the Culture property

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

WPF RadMaskedInput Custom Currency and DateTime Cultures

See Also

In this article