J
Joey Lee
Hi,
How do one set default value for objects?
For simple attributes like string, one can do it like
[Bindable(true),
Category("Appearance"),
DefaultValue("datagridstyle")]
public override string CssClass
{
get
{
return base.CssClass;
}
set
{
base.CssClass = value;
}
}
but for headerstyle-CssClass, how do one go about? I want to change the
CssClass value only. If i create a TableItemStyle, where should i code this
and how do i assign it to the defaultValue part?
[DefaultValue("???")]
public override TableItemStyle HeaderStyle
{
get
{
return base.HeaderStyle;
}
}
Or have i make mistake... and there are better way of doing this?
Thanks
Joey
How do one set default value for objects?
For simple attributes like string, one can do it like
[Bindable(true),
Category("Appearance"),
DefaultValue("datagridstyle")]
public override string CssClass
{
get
{
return base.CssClass;
}
set
{
base.CssClass = value;
}
}
but for headerstyle-CssClass, how do one go about? I want to change the
CssClass value only. If i create a TableItemStyle, where should i code this
and how do i assign it to the defaultValue part?
[DefaultValue("???")]
public override TableItemStyle HeaderStyle
{
get
{
return base.HeaderStyle;
}
}
Or have i make mistake... and there are better way of doing this?
Thanks
Joey