ItemsSource="{Binding Source={StaticResource stringResources}, Path=MyProp}"
I tried and got so far but I don't get it compiled:
comboBox.ItemsSource = new Binding { Source = new StringResources(), ElementName = "MyProp" };
comboBox.DisplayMemberPath="Value";
comboBox.SelectedValuePath="Key";
It says that it cannot convert Binding to IEnumerable and I wasn't sure how to construct a PropertyPath so I used ElementName but I don't know if this is the same.
StringResources is a class which has a property MyProp which returns a Dictionary.