Properties and Properties pane
In the previous article, we discussed the relationship between HTML style tags and text in attributes and ASPX files, and omitted two points:
1, Encodedinnerdefaultproperty and Innerdefaultproperty in the use of the difference, may be some friends of this is not very clear, The Encodedinnerdefaultproperty property is not allowed to contain the control object, for example, declaring the Encodedinnerdefaultproperty's DataList Text property is not allowed you to set to "<table ......>.....</table> "such as the content of HTML tags (which are accurately solvable as objects). and declared as
Innerdefaultproperty's DropDownList Items property you can write <asp:datalist value = "1" >1</asp:datalist> such content.
2, a property should not be at all in the ASPX file control, how to do?
These we can this attribute:
Designerserilizationvisibility (Designerserializationvisibility.hidden)
Okay, let's move on to today's topic: Properties and Properties Pane
It is believed that most programmers use the Properties pane to set the properties of the control object in most cases, so the property pane is also critical in the design of the control.
When we say the property pane, let's take a look at the Propertygrid,propertygrid is a control under System.Windows.Forms.dll, Vs.net and other IDE tools are used to provide property display, operation functions, You may not normally have the concept of this control, although you may use it to provide functionality every day.