如何让另一个控件的属性显示在属性窗口中。例如,如果我有
public class MyClass : UserControl
{
public MyClass(){}
public bool Visible{get;set}// Property of MyClass
public MyProperties GridProp {get;set;}// Tried this but does not show the properties
//of MyProperties class
}
public class MyProperties
{
public MyProperties() { }
public bool Visible { get; set; }
public Color Color { get; set; }
}
如何让MyProperties
属性与 的属性一起显示MyClass
?