<UserControl x:Class="DataGridSamples.AutoFilter"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      xmlns:c1="http://schemas.componentone.com/winfx/2006/xaml"
      mc:Ignorable="d" 
      d:DesignHeight="300" d:DesignWidth="300">
    <UserControl.Resources>
        <Style x:Key="VirtualizingMultiValueFilter" TargetType="c1:DataGridMultiValueFilter">
            <Setter Property="VirtualizingStackPanel.IsVirtualizing" Value="True"/>
            <Setter Property="ScrollViewer.CanContentScroll" Value="True"/>
            <Setter Property="ItemsPanel">
                <Setter.Value>
                    <ItemsPanelTemplate>
                        <VirtualizingStackPanel />
                    </ItemsPanelTemplate>
                </Setter.Value>
            </Setter>
            <Setter Property="Width" Value="200"/>
        </Style>

    </UserControl.Resources>


    <c1:C1DataGrid x:Name="dataGrid" 
                   HeadersVisibility="Column" 
                   CanUserGroup="True" 
                   CanUserEditRows="False" 
                   CanUserAddRows="False" 
                   AutoGenerateColumns="True"
                   FilterLoading="dataGrid_FilterLoading"
                   FilterOpened="dataGrid_FilterOpened"/>
</UserControl>
