<Window x:Class="TestSfMaskedEditRegex.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:TestSfMaskedEditRegex"
        xmlns:sf="http://schemas.syncfusion.com/wpf"        
        mc:Ignorable="d"
        Title="MainWindow" SizeToContent="WidthAndHeight">
    <Grid Margin="10">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="100"/>
            <ColumnDefinition Width="100"/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <TextBlock Grid.Row="0" Grid.Column="0">MaskedTextBox:</TextBlock>
        <TextBlock Grid.Row="1" Grid.Column="0">Mask:</TextBlock>
        <TextBlock Grid.Row="2" Grid.Column="0">Mask-Type:</TextBlock>
        <TextBlock Grid.Row="3" Grid.Column="0">Value:</TextBlock>
        <TextBlock Grid.Row="4" Grid.Column="0">Text:</TextBlock>

        <sf:SfMaskedEdit Grid.Row="0" Grid.Column="1" x:Name="MaskedBox"
                         ValueMaskFormat="IncludeLiterals"
                         ValidationMode="KeyPress"
                         Value="{Binding ValueText, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>
        
        
        <TextBlock Grid.Row="1" Grid.Column="1" Text="{Binding Mask, Mode=OneWay}"/>
        <WrapPanel Grid.Row="2" Grid.Column="1" Orientation="Horizontal">
            <Button Click="Button_Click">Simple</Button>
            <Button Click="Button_Click_1">Regex</Button>
        </WrapPanel>
        <TextBlock Grid.Row="3" Grid.Column="1" Text="{Binding ElementName=MaskedBox, Path=Value, Mode=OneWay}"/>
        <TextBlock Grid.Row="4" Grid.Column="1" Text="{Binding ElementName=MaskedBox, Path=Text, Mode=OneWay}"/>
    </Grid>
</Window>
