<Window x:Class="MaskedTextBox_DataBinding_WPF.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:local="clr-namespace:MaskedTextBox_DataBinding_WPF"
        xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Input"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Window1" Height="300" Width="300">
    <StackPanel>
        <TextBlock Text="This is TextBox with Mask=##### and  Value={Binding Num, Mode=TwoWay}" Margin="0,20,0,0" Foreground="Blue"/>
        <TextBox Name="text3" Text="{Binding Num, Mode=TwoWay}" />
        <TextBlock Text="This is MaskedTextBox with Mask=##### and  Value={Binding Num, Mode=TwoWay} : TwoWay DataBinding"  Margin="0,20,0,0" Foreground="Blue"/>
        <telerik:RadMaskedTextBox MaskType="Standard"  Mask="#####"
                                  Value="{Binding Num, Mode=TwoWay}"/>
        <TextBlock Text="This is MaskedTextBox with Mask=##### and  Value={Binding Num} : OneWay DataBinding"  Margin="0,20,0,0" Foreground="Blue"/>
        <telerik:RadMaskedTextBox MaskType="Standard"  Mask="#####"
                                  Value="{Binding Num}"/>
    </StackPanel>
</Window>
