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