I have an XML file with a list of countries. I use an XMLDataProvider in xaml to bind a combobox's ItemsSource. I also have a viewModel with a property that I wanted to bind the selected value to. I've tried to bind to the viewmodel using a namespace local:
SelectedValuePath="Country"
SelectedValue="{Binding local:Project.ProjectInfo.CompanyCountry}"
However I had to se the DataContext for the xmlProvider.
Is there a way to get the binding to work in the viewModel?
Thanks in advance.