title: WPF binding where value = X
body: <p>Hi Just wanna hear if its possible in xaml to bind to a list, where a value has a certain value.
  Ex. in the following example, is it possible with Xaml only to only show the items, where Price = 20?</p>
  
  <p>I'm asking because I'm going to Bind a list of object containing another list, where I only wanna show certain item, depending on there values. Therefor I'm trying to avoid a C# solution.</p>
  
  <p>MainWindow.xaml</p>
  
  <pre><code>   &lt;Window x:Class="Binding_Test.MainWindow"
          xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
          xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
          Title="MainWindow" Height="350" Width="525"&gt;
      &lt;Grid&gt;
          &lt;ListView ItemsSource="{Binding}"/&gt;
      &lt;/Grid&gt;
  &lt;/Window&gt;
  </code></pre>
  
  <p>MainWindow.xaml.cs</p>
  
  <pre><code>public MainWindow()
          {
              DataContext = BuildList();
              InitializeComponent();
          }
  
          List&lt;Product&gt; BuildList()
          {
              var list = new List&lt;Product&gt;();
              var y = 1;
              for (var i = 0; i &lt; 100; i++)
              {
                  list.Add(new Product{Name = string.Format("Item {0}",i), Price = y++ * 10 });
                  if (y &gt; 3)
                      y = 1;
              }
              return list;
          }
  </code></pre>
  
  <p>Product.cs</p>
  
  <pre><code>public class Product
      {
         public string Name { get; set; }
         public int Price { get; set; }
  
         public override string ToString()
         {
             return string.Format("{0} \t{1}", Name, Price.ToString("C2"));
         }
  }
  </code></pre>