This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
I have assigned successfuly the built-in ListSelectEditor to a property in code. How can I set the the ItemsSource property of the ListSelectEditor dynamically? |
|
|
You can't, at least not directly. The ListSelectEditor automatically sets the ItemsSource for the contained combo box, and this can't be overridden. It does however consult the property or property type's TypeConverter, so you can indirectly control the ItemsSource by returning true from GetStandardValuesSupported and implementing GetStandardValues. Otherwise, you will need to create your own template using a ComboBox with your own ItemsSource. |
|