Setting a ComboBox entry after asynch fetch of its ItemSource

Setting a ComboBox entry after asynch fetch of its ItemSource

Old forum URL: forums.lhotka.net/forums/t/10247.aspx


Devman posted on Thursday, April 07, 2011

Hi,

I have a specific requirement where i need to be able to set a ComboBox's entry If its underlying bound property is a required field, but only if the bound ItemsSource returns a collection containing one value.

The ItemsSource is bound to the model property of a Lookup style csla ViewModel (fetched Asynch) and the ComboBox needs to have this one item set as its selectedItem (or set SelectedIndex to 0).

As yet, Ive been unable to think of a solution to this, so any ideas would be greatly appreciated.

Best Regards

 

 

 

Copyright (c) Marimer LLC