title: Is it possible multiple filters in one collection view source wpf
body: <p>I know one filter in one collection view source but when i use multiple filters in one collection source.Last filter only properly works.Please help me to do multiple filters in one collection view source.</p>
  
  <p>Xaml</p>
  
  <pre><code> &lt;Grid&gt;
          &lt;DockPanel&gt;
              &lt;DockPanel  DockPanel.Dock="Top" Height="90"&gt;
                  &lt;TextBlock VerticalAlignment="Center" Margin="0,9" DockPanel.Dock="Left"  &gt;Threshold&lt;/TextBlock&gt;
                  &lt;Slider x:Name="Confidencethreshold"   Value="14" Margin="0,5" DockPanel.Dock="Left" Width="200"
                          Minimum="0"  Maximum="50" 
                          ValueChanged="Confidencethreshold_ValueChanged_1" 
                          TickPlacement="BottomRight"      TickFrequency="5"   IsSnapToTickEnabled="False"  SmallChange="1"&gt;&lt;/Slider&gt;
                      &lt;StackPanel Orientation="Horizontal" &gt;
                          &lt;RadioButton x:Name="radioFound" IsChecked="True" Content="Matches" Checked="radioFound_Checked_1"  Margin="6" /&gt;
                          &lt;RadioButton x:Name="radioALL" Content="ALL" Checked="radioFound_Checked_1" Margin="6"/&gt;
  
                  &lt;/StackPanel&gt;
                  &lt;/DockPanel&gt;
              &lt;DataGrid Name="DG2" ItemsSource="{Binding}" AutoGenerateColumns="False"  CanUserSortColumns="True"&gt;
              &lt;DataGrid.Columns&gt;
  
                      &lt;!--&lt;mui:DataGridCheckBoxColumn Header="Silence Reduction"  Binding="{Binding P1}"/&gt;--&gt;
                      &lt;mui:DataGridTextColumn Header="Segment" Binding="{Binding sname}" IsReadOnly="True" /&gt;
                      &lt;!--&lt;mui:DataGridCheckBoxColumn Header="Trimming" Binding="{Binding trim}" /&gt;
                  &lt;mui:DataGridCheckBoxColumn Header="Format Conversion" Binding="{Binding alaw}"/&gt;
                  &lt;mui:DataGridCheckBoxColumn Header="Recognition" Binding="{Binding recog}" /&gt;--&gt;
                      &lt;!--&lt;mui:DataGridComboBoxColumn Header="Status" SelectedItemBinding="{Binding Status}" ItemsSource="{Binding Source={StaticResource myEnum}}" /&gt;--&gt;
                      &lt;mui:DataGridTextColumn Header="Key" Binding="{Binding key}" IsReadOnly="True" /&gt;
                      &lt;!--&lt;mui:DataGridTextColumn Header="Confidence" Binding="{Binding conf}" IsReadOnly="True" SortDirection="Ascending" SortMemberPath="{Binding conf}" /&gt;--&gt;
                      &lt;mui:DataGridTextColumn Header="Confidence" Binding="{Binding conf}"  IsReadOnly="True" /&gt;
  
                  &lt;/DataGrid.Columns&gt;
  
              &lt;/DataGrid&gt;
  
          &lt;/DockPanel&gt;
      &lt;/Grid&gt;
  
  
  And in c#
  
  
  
              MainWindow w1 = (MainWindow)Window.GetWindow(this);
              cvs = new CollectionViewSource();
              cvs.Source = w1.allresults;
              cvs.Filter += cvs_Filter;  
              DG2.DataContext = cvs;
  
  
  
  
    void cvs_Filter(object sender, FilterEventArgs e)
      {
          KeysFound t = e.Item as KeysFound;
          if (t != null)
          // If filter is turned on, filter completed items.
          {
              if (t.conf &lt; Confidencethreshold.Value)
                  e.Accepted = false;
              else
              {
                  e.Accepted = true;
  
              }
  
  
          }
      }
  </code></pre>