我用代码建立了这样一个属性条
[CategoryAttribute("aaa"),DescriptionAttribute("aaa")]
public string Name
{
get
{
return _name;
}
set
{
_name = value;
}
}问题是我想在加载的时候通过一个按钮事件来控件是否显示这条属性条???这样的话在Button中应该怎么实现???高手指教!!!!
[CategoryAttribute("aaa"),DescriptionAttribute("aaa")]
public string Name
{
get
{
return _name;
}
set
{
_name = value;
}
}问题是我想在加载的时候通过一个按钮事件来控件是否显示这条属性条???这样的话在Button中应该怎么实现???高手指教!!!!
(1)Implement ITypeDescriptorContext.
(2)Build your dynamic type.