I have not touched C# in years and low and behold it has drastically changed.
I am working on a small project and I am looking for help for the following scenario:
the following listbox is bound to an XML file that is included into the project.
Quote:
<ListBox x:Name="LbAud" ItemsSource="{Binding Source={StaticResource XmlData}, XPath=Terms/Audience}" HorizontalAlignment="Left" Margin="99,142,0,0" VerticalAlignment="Top" Width="350" Height="68"/>
|
how would I go about to load data from a different XML file into the same box?
For your information, there will be 5 listboxes that depending on the user's choice load from different data files
I was thinking initially of creating 15 listboxes and hiding/showing them depending on the user's choice, but that seems to be a waste of resources.
So instead i want to re-utilize the same boxes and populate from different lists.
All is coded in C# XAML (which is new to me) and should run in a WPF environment.
I appreciate your help