User control attributes at design-time
Posted
by ciscoheat
on Stack Overflow
See other posts from Stack Overflow
or by ciscoheat
Published on 2010-03-22T13:31:02Z
Indexed on
2010/05/06
8:38 UTC
Read the original article
Hit count: 235
I'm testing a simple User Control in Visual Studio 2008: A Panel named Wrapper
with some controls inside. Can Visual Studio handle this at design time?
public partial class TestControl : System.Web.UI.UserControl
{
[Description("Css class of the div around the control.")]
[CssClassProperty]
public string CssClass
{
get { return Wrapper.CssClass; }
set { Wrapper.CssClass = value; }
}
}
When setting the CssClass property, it doesn't update the css of the Panel at design time. Am I hoping for too much?
© Stack Overflow or respective owner