Suppose you create a standard UserControl or a CustomControl in wpf and then declare a property of a complex type
public ComplexPropertyType AProperty { get; set; }
Complex type is a simple class with a bunch of properties
public class ComplexPropertyType
{
public int IntP { get; set; }
public String Strp { get; set; }
}
At design time AProperty is not editable.
I remember that there are attributes from System.ComponentModel that permits me to specify to use a standard property editor to make that property editable, but I cannot remember.
Anyone has a solution that clearly does not require writing a custom property editor? After all If I declare in my control a property that is a collection of complex type Es.
public ObservableCollection ACollOfProperty { get; set; }
Automatically the designer use the System.ComponentModel.Design.CollectionEditor that is capable of editing my complex type
Thanks in advance.