I have a XamComboEditor like so
<ig:XamComboEditor Name="cmbProviderList" EmptyText="--ALL--" AllowMultipleSelection="True" Width="245" Margin="0,0,0,20" HorizontalAlignment="Left" ItemsSource="{Binding ProviderList}" DisplayMemberPath="DisplayName" SelectedValuePath="DisplayName"/>
I'm setting the SelectedValues in code behind like so
object[] providers = new object[userPullListParameters.ProviderName.Count]; for (int i = 0; i < userPullListParameters.ProviderName.Count; i++) { providers[i] = userPullListParameters.ProviderName[i]; } cmbProviderList.SelectedValues = providers;
I can verify that the object array contains 3 strings, however only the last item in the array ends up set in the combobox.
Thanks
Peter
Hello Peter Friebel,
I created a sample which used your codes as much as possible and gave it a try, but your issue wasn't reproduced.I attached it to this response.Could you take a look at it and see if it works expectedly on your side?
2656.F121506-SampleApp1.zip
Thanks for the response. I've ended up taking a completely different approach. Although I do essentially the same thing in my new code, I don't have the problem anymore. Was certainly something I missed.