<UserControl x:Class="MaskedTextBox__DataBinding.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:MaskedTextBox__DataBinding"
    xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Input"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480">
    <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>
</UserControl>
