title: How to disable some items in XAML for a WPF ListView
body: <p>OK, sorry for the overly broad question, but let's see what you guys suggest....</p>
  
  <p>I have a WPF ListView loaded by an XML file, using XAML (code below) </p>
  
  <p>I have a second XML file with items that match what is in my ListView.  However, if there is <em>not</em> a match in the 2nd file, then I want that ListItem disabled.</p>
  
  <p>A simple example:</p>
  
  <p>My ListView has in it: </p>
  
  <pre><code>                   Joe
                     Fred
                     Jim  
  </code></pre>
  
  <p>(because it was loaded with the first XML file)</p>
  
  <p>My second XML file has (essentially): </p>
  
  <pre><code>                  Joe
                    Jim
  </code></pre>
  
  <p>I want the ListView to somehow consume this second file as well, resulting in "Fred" being disabled.</p>
  
  <p>I am assuming that it would be some sort of "Filter" I would apply somewhere in XAML.</p>
  
  <pre><code>&lt;ListView Name="lvwSourceFiles" 
            Margin="11,93,0,12" VerticalContentAlignment="Center" 
            HorizontalAlignment="Left" Width="306"
            Cursor="Hand" TabIndex="6" 
            ItemsSource="{Binding}"
            SelectionMode="Multiple"
            SelectionChanged="lvwSourceFiles_SelectionChanged" &gt;
      &lt;ListBox.DataContext&gt;
          &lt;XmlDataProvider x:Name="xmlSourceFiles" XPath="AssemblyUpdaterSource/sources/source/File" /&gt;
      &lt;/ListBox.DataContext&gt;
      &lt;ListView.ItemContainerStyle&gt;
          &lt;Style TargetType="{x:Type ListViewItem}"&gt;
              &lt;EventSetter Event="PreviewMouseRightButtonDown"
                           Handler="OnSourceListViewItemPreviewMouseRightButtonDown" /&gt;
          &lt;/Style&gt;
      &lt;/ListView.ItemContainerStyle&gt;
  &lt;/ListView&gt;
  </code></pre>