We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy
Join MindStick Community
You have need login or register for voting of answers or question.
shreesh chandra shukla
18-Jul-2013Here is a pure XAML solution :
<DockPanel DataContext="{StaticResource myDataViewSource}"><ComboBox DockPanel.Dock="Bottom" x:Name="FieldSelector" SelectedIndex="0">
<ComboBoxItem Content="Field1" Tag="Field1"/>
<ComboBoxItem Content="Field2" Tag="Field2"/>
<ComboBoxItem Content="Field3" Tag="Field3"/>
<ComboBoxItem Content="Field4" Tag="Field4"/>
</ComboBox>
<ListBox ItemsSource="{Binding}"
DisplayMemberPath="{Binding ElementName=FieldSelector,Path=SelectedItem.Tag}" />
</DockPanel>