Hi,
Consider the following code:
myType filledVar {get;set;}
List<myType> myList = new List();
combobox1.ItemsSource = myList
How can you after set the ItemsSource set the selectedIndex to a value that is present in filledVar ?
e.g. user has a property language. You bind a combobox with languages. How can you set the language in the combobox to the language of the user?
In the asp.net suite you had something like: FindItemByValue of FindItemByText if I remember correctly.
Thanks,
Nicolas
Consider the following code:
myType filledVar {get;set;}
List<myType> myList = new List();
combobox1.ItemsSource = myList
How can you after set the ItemsSource set the selectedIndex to a value that is present in filledVar ?
e.g. user has a property language. You bind a combobox with languages. How can you set the language in the combobox to the language of the user?
In the asp.net suite you had something like: FindItemByValue of FindItemByText if I remember correctly.
Thanks,
Nicolas