Hi,
I defined a generic class to encapsulate all my 'actual' properties.
class MyProperty<T>
{
public T Value { get; set; }
public bool IsRecall { get; set; }
}
Assume i have an instance of the following class which i want to assign to a property grid
class A
{
public MyProperty PA { get;set;}
public MyProperty PB { get;set;}
public MyProperty PC { get;set;}
}
I don't want the user to have to expand all properties by hand so creating a custom editor for my property type, which is a simple combination of an editor for type T and a checkbox.
My question is; can i get the editor for type T somehow from the toolkit without having to reinvent PropertyGridUtilities.CreateDefaultEditor ?
Thanks
I defined a generic class to encapsulate all my 'actual' properties.
class MyProperty<T>
{
public T Value { get; set; }
public bool IsRecall { get; set; }
}
Assume i have an instance of the following class which i want to assign to a property grid
class A
{
public MyProperty PA { get;set;}
public MyProperty PB { get;set;}
public MyProperty PC { get;set;}
}
I don't want the user to have to expand all properties by hand so creating a custom editor for my property type, which is a simple combination of an editor for type T and a checkbox.
My question is; can i get the editor for type T somehow from the toolkit without having to reinvent PropertyGridUtilities.CreateDefaultEditor ?
Thanks