Configuring custom management properties

Although it would be very simple, but I can not get it today.

I have a user control that contains a grid control.

public Unit Width
{
    get
    {
        return CustomerGrid.Width;
    }
    set
    {
        CustomerGrid.Width = value;

    }
}

I expand the width property, and when I set it in the constructor, it works at runtime, but not at design time.

Which class I inherit or the method overrides to make my controls function at design time.

Note. I tried to inherit from WebControl but got a message

Make sure that the class defined in this code file matches the 'inherits' attribute, and that it extends the correct base class 
+3
source share
1 answer

, (ascx), ( ascx). , UserControl, - .

, .

http://msdn.microsoft.com/en-us/library/aa478960.aspx

+5

Source: https://habr.com/ru/post/1742004/


All Articles