<UserControl x:Class="MainTestApplication.FullTextFilter"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:c1="http://schemas.componentone.com/winfx/2006/xaml">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition/>
        </Grid.RowDefinitions>
        <c1:C1TextBoxBase x:Name="filter" Margin="4 4 4 4" Width="200" HorizontalAlignment="Left"/>
        <StackPanel Orientation="Horizontal" Grid.Row="1">
            <CheckBox x:Name="matchCaseCheckbox" Content="Match case" Margin="4"/>
            <CheckBox x:Name="matchWholeWordCheckBox" Content="Match whole word" Margin="4" />
            <CheckBox x:Name="treatSpacesAsAndOperator" Content="Treat Spaces As And Operator" Margin="4" />
            <CheckBox x:Name="matchNumbers" Content="Match Numbers" Margin="4" />
        </StackPanel>
        <c1:C1FlexGrid x:Name="grid" Grid.Row="2">
            <c1:C1FlexGridFilterService.FlexGridFilter>
                <c1:C1FlexGridFilter />
            </c1:C1FlexGridFilterService.FlexGridFilter>
            <c1:C1FlexGridFilterService.FullTextFilterBehavior>
                <c1:C1FullTextFilter FilterEntry="{Binding Source={x:Reference filter}}" 
                                     MatchWholeWord="{Binding IsChecked, Source={x:Reference matchWholeWordCheckBox}}" 
                                     MatchCase="{Binding IsChecked, Source={x:Reference matchCaseCheckbox}}"
                                     TreatSpacesAsAndOperator="{Binding IsChecked, Source={x:Reference treatSpacesAsAndOperator}}"
                                     MatchNumbers="{Binding IsChecked, Source={x:Reference matchNumbers}}" />
            </c1:C1FlexGridFilterService.FullTextFilterBehavior>
        </c1:C1FlexGrid>
    </Grid>
</UserControl>
