原文:How can I set the SelectedIndex property of a ComboBox that is bound to XML based on an attribute in that xml?
I have a WPF Combobox defined as such: <ComboBox Grid.Column="1" x:Name="cUrls" SelectedIndex="1" ItemsSource=" {Binding XPath=//data/endpoints/endpoint}" Margin="5" > &...