Quantcast
Channel: wpftoolkit Discussions Rss Feed
Viewing all articles
Browse latest Browse all 2157

New Post: Encapsulate property item editor

$
0
0
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

Viewing all articles
Browse latest Browse all 2157

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>