How can I make this work with the property grid? I am using a property grid with automatically generated properties and on edit I want SelectedIndex1 and SelectedIndex2 to display a list of my available indexes for the user to choose from.
public
class
MyIndexSelector
{
private
readonly
List<
int
> m_someList =
new
List<
int
> () {1, 2, 3};
[Browsable (
false
)]
public
List<
int
> AvailableIndexes {
get
{
return
m_someList; } }
//??[Telerik.Windows.Controls.Data.PropertyGrid.Editor (typeof (IndexEditorControl), Telerik.Windows.Controls.Data.PropertyGrid.EditorStyle.DropDown)]
public
int
SelectedIndex1 {
get
;
set
; }
//??[Telerik.Windows.Controls.Data.PropertyGrid.Editor (typeof (IndexEditorControl), Telerik.Windows.Controls.Data.PropertyGrid.EditorStyle.DropDown)]
public
int
SelectedIndex2 {
get
;
set
; }
}