"Sometimes it is desirable to want to provide a collection of values represented by a ComboBox for a given property."
This is true, but it is also sometimes desirable to provide a custom list based on values that exist only at runtime.
It would be nice if, on top of the Attrbiute way of adding ItemsSource, you could also add a property Itemsource by saying
` PropertyGrid.PropertySources.Add("PropertyName", SourceItemCollection); `
with priority given to the PropertySources over the attribute. This would also give the ability to override the attribute in certain situations
Comments: ** Comment from web user: BoucherS **
This is true, but it is also sometimes desirable to provide a custom list based on values that exist only at runtime.
It would be nice if, on top of the Attrbiute way of adding ItemsSource, you could also add a property Itemsource by saying
` PropertyGrid.PropertySources.Add("PropertyName", SourceItemCollection); `
with priority given to the PropertySources over the attribute. This would also give the ability to override the attribute in certain situations
Comments: ** Comment from web user: BoucherS **
As said in https://wpftoolkit.codeplex.com/discussions/453243, this feature is present in v2.0 of the Extended WPF Toolkit (Plus Edition). Please have a look at the sample PropertyGrid/Editors/More EditorDefinitions.
In this sample, the ColorComboBox.ItemsSource can be set at runtime.