Hi,
I have a string property Country in my class which is displayed in a TextBox editor.
Now I want it to be displayed as ComboBox and I will provide the list of the items to be shown in it.
The xceed property grid has an ItemsSource attribute by which user can provide the same.
How to achieve this using xampropertygrid??
Hi Ramesh,
I think this topic will be of help to you:http://help.infragistics.com/doc/WPF/2016.1/CLR4.0/?page=xamPropertyGrid_Conf_Editors.html
You can specify a custom editor for any property that you like. Just add an editor definition that targets the Country property and specify an EditTemplate that contains the ComboBox and ItemsSource setting. Make sure to bind the ComboBox SelectedItem/SelectedValue the same way as shown in the documentation for the Slider. I.e.: SelectedValue="{Binding Value}".