This is an example from my code I'm using, Itemsource is bound to PolyFeatureLayers, a public method used to get a private Collection that holds map Feature layers. Then selected item is bound to SelectedPolyFeatureLayer, a public method used to get a private FeatureLayer. This was actually adapted from one of the community samples.
This is an active binding, which means at the variables will be immediately updated to have the selected combobox items, without need for buttons to refresh them.
XAML
<ComboBox Grid.Column="1" ItemsSource="{Binding PolyFeatureLayers}" DisplayMemberPath="Name" SelectedItem="{Binding SelectedPolyFeatureLayer}" />
C#
private FeatureLayer _selectedPolyFeatureLayer;
private ObservableCollection<FeatureLayer> _polyFeatureLayers = new ObservableCollection<FeatureLayer>();
public ReadOnlyObservableCollection<FeatureLayer> PolyFeatureLayers {
get { return new ReadOnlyObservableCollection<FeatureLayer>(_polyFeatureLayers); }
}
public FeatureLayer SelectedPolyFeatureLayer {
get { return _selectedPolyFeatureLayer; } //return selected feature
set { _selectedPolyFeatureLayer = value; } //set selected feature (the combobox uses this), value is what is passed to it
}