title: WPF ItemContainerStyle not binding to collection items
body: <p>I have a view model object called <code>ProjectViewModel</code> that is assigned as my Window's data context. Within the view model, I have an <code>ObservableCollection&lt;DiaryViewModel&gt;</code> that I bind to the ItemsSource of a <code>ListView</code>. Within the <code>DiaryViewModel</code> I have a few properties. The <code>ListViewItem</code> items need to be stylized based on what those property values are. When I try to bind to the <code>DiaryViewModel</code> associated with the <code>ListViewItem</code>, visual studio tells me that the property does not exist. Resharper's Intellisense show's me that the binding is associated with the <code>ProjectViewModel</code>. When I type <code>Path=</code> the intellisense shows me all of the properties assocaited with the <code>ProjectViewModel</code>.</p>
  
  <p>Can anyone tell me if I am doing something wrong? The GridColumns are bound properly to the <code>DiaryViewModel</code> properties, just not the <code>ItemContainerStyle</code></p>
  
  <pre><code>&lt;Window x:Class="Pen.Views.PenMain"
          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:viewModels="clr-namespace:Pen.ViewModels"
          Title="PEN"
          ResizeMode="CanResizeWithGrip"
          mc:Ignorable="d"
          Height="700"
          Width="1000"
          WindowStartupLocation="CenterScreen"
          d:DataContext="{d:DesignInstance Type=viewModels:ProjectViewModel, IsDesignTimeCreatable=True}"&gt;
  
      &lt;Window.DataContext&gt;
          &lt;viewModels:ProjectViewModel /&gt;
      &lt;/Window.DataContext&gt;
  
      &lt;ListView Margin="0"
                  Name="lvDiaries"
                  ScrollViewer.VerticalScrollBarVisibility="Auto"
                  ScrollViewer.HorizontalScrollBarVisibility="Disabled"
                  VerticalAlignment="Stretch"
                  ItemsSource="{Binding Path=DiariesForSelectedProject}"
                  SelectedItem="{Binding Path=SelectedDiaryViewModel}"
                  MouseDoubleClick="DiariesDoubleClicked"
                  SelectionChanged="lvDiaries_SelectionChanged"&gt;
          &lt;ListView.View&gt;
              &lt;GridView&gt;
                  &lt;GridViewColumn Header="DiaryId"
                                  Width="0"
                                  DisplayMemberBinding="{Binding Path=Id}" /&gt;
                  &lt;GridViewColumn Header="Number"
                                  Width="50"
                                  DisplayMemberBinding="{Binding Path=Number}" /&gt;
                  &lt;GridViewColumn Header="DiaryDate"
                                  Width="90"
                                  DisplayMemberBinding="{Binding Path=Date, StringFormat=d}" /&gt;
                  &lt;GridViewColumn Header="Inspector"
                                  Width="150"
                                  DisplayMemberBinding="{Binding Path=Inspector}" /&gt;
                  &lt;GridViewColumn Header="Status"
                                  Width="130"
                                  DisplayMemberBinding="{Binding Path=Status}" /&gt;
              &lt;/GridView&gt;
          &lt;/ListView.View&gt;
  
          &lt;ListView.ItemContainerStyle&gt;
              &lt;Style TargetType="ListViewItem"&gt;
                  &lt;Style.Triggers&gt;
                      &lt;DataTrigger Binding="{Binding Path=Status}"
                                      Value="Supervisor Returned"&gt;
                          &lt;Setter Property="Foreground"
                                  Value="White" /&gt;
                          &lt;Setter Property="Background"
                                  Value="Red" /&gt;
                      &lt;/DataTrigger&gt;
                      &lt;DataTrigger Binding="{Binding Path=Status}"
                                      Value="Office Returned"&gt;
                          &lt;Setter Property="Foreground"
                                  Value="White" /&gt;
                          &lt;Setter Property="Background"
                                  Value="Red" /&gt;
                      &lt;/DataTrigger&gt;
                  &lt;/Style.Triggers&gt;
              &lt;/Style&gt;
          &lt;/ListView.ItemContainerStyle&gt;
      &lt;/ListView&gt;
  
  &lt;/Window&gt;
  </code></pre>