B
Brendon
I have written a custom composite control. When I try to get the value of a
Color property I always get Color.Empty in the designer, but I do get the
color that is selected when the webpage is run. Does anyone know if I have
to do something specific to get the value of the color back into the
designer? I have included the property that I am adding to the control.
Thanks,
Brendon
[Description("Display the color of the Header." ),
Category("UGEvent"),
NotifyParentProperty(true),
Bindable(true),
TypeConverter(typeof(WebColorConverter)) ]
public Color HeaderColor
{
get
{
EnsureChildControls() ;
return this._HeaderColor ;
}
set
{
EnsureChildControls() ;
this._HeaderColor = (Color) value ;
}
} //End HeaderColor
Color property I always get Color.Empty in the designer, but I do get the
color that is selected when the webpage is run. Does anyone know if I have
to do something specific to get the value of the color back into the
designer? I have included the property that I am adding to the control.
Thanks,
Brendon
[Description("Display the color of the Header." ),
Category("UGEvent"),
NotifyParentProperty(true),
Bindable(true),
TypeConverter(typeof(WebColorConverter)) ]
public Color HeaderColor
{
get
{
EnsureChildControls() ;
return this._HeaderColor ;
}
set
{
EnsureChildControls() ;
this._HeaderColor = (Color) value ;
}
} //End HeaderColor