title: XAML data binding - UI not automatically updating
body: <p>I've made a program which stores any number of objects of my type Project. Each Project then contains any number of Files, which is another object I created for this program.</p>
  
  <p>The problem I am having arises in XAML, in 2 areas, but which I imagine have a similar origin.</p>
  
  <p>I have a Window which contains a ListView, populated with the Files in a selected Project. From here I can check a box beside each to turn them on or off, and if I select a file, information about it appears in the status bar of this Window.</p>
  
  <p>If I turn a File off, its text colour is supposed to appear light grey in the ListView, but it does not do this automatically; I have to close the Window and re-open it. The File implements INotifyPropertyChanged, and fires this event if the on/off state changes.</p>
  
  <p>I use this XAML code, where the converter is in my code behind class:</p>
  
  <pre><code>&lt;ListBox.ItemContainerStyle&gt;
       &lt;Style TargetType="ListBoxItem"&gt;
            &lt;Setter  Property="Foreground" Value="{Binding Path=IsVisible, Converter={StaticResource VisibleStateToFontColourConverter}}"/&gt;
       &lt;/Style&gt;
  &lt;/ListBox.ItemContainerStyle&gt;  
  </code></pre>
  
  <p>Also for the selected File, if the information in the file changes while it is selected (which other classes can cause to happen), I want the status bar to update automatically to reflect this change, but it doesn't; I have to click something else and then re-select the File of interest. I implement and use INotifyPropertyChanged for this too, and so I don't know why it doesn't automatically update. My XAML code for the status item is like this:</p>
  
  <pre><code>&lt;StatusBarItem Name="statusItem_FileInfo" Content="{Binding ElementName=loadedFiles_ListView, Path=SelectedItem, Converter={StaticResource GIS_FileToInfoConverter}}"/&gt;
  </code></pre>
  
  <p>Does anyone know what I'm missing that will bring it all together?</p>