In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces the use of ASP.NET control designer, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let Xiaobian take you to understand.
1. ASP.NET control designer function
ASP.NET has made significant improvements while continuing to support earlier versions of the control designer architecture.
Zone-based editing of the ◆ ASP.NET control designer.
A region is an editable region in the view of the control at design time. This feature provides WYSIWYG editing of the contents of the control at design time.
The operation table for the ◆ ASP.NET control designer.
The action table is a task menu that the page developer of the control can use in the design-time UI. For example, the design-time view of a control can provide a menu of available tasks, including tasks that automatically format the control.
The data source and data binding designer for the ◆ ASP.NET control designer.
The data source control designer enables page developers to configure data source controls. The data-bound control designer enables page developers to configure data-bound controls. Provides features that can be used to communicate between the data source designer and the data binding designer.
Simplified template editing for the ◆ ASP.NET control designer.
Creating a UI model for design-time editing of templated controls such as GridView has been greatly simplified and modified so that control developers can choose to perform their own template edits with regions.
A simplified object model for the ◆ ASP.NET control designer.
The use of the design-time rendered object model has been simplified, so that an important issue that developers must be concerned about is generating design-time HTML. Several new base classes provide access to the simplified object model: ControlDesigner, ContainerControlDesigner, and CompositeControlDesigner.
Subscription hosting service for the ◆ ASP.NET control designer.
Control designers can subscribe to and use a variety of services provided by the hosting environment. For example, a control designer can use VisualStudio2005 services to provide access to data, provide access to configuration, programmatically add controls to a page at design time, handle Click events in the designer, draw on the design surface, and access other services such as designer state.
2. The basic designer class of ASP.NET control designer
The control designer enables design-time rendering of Web server controls by acting as a moderator between the runtime control and the hosting environment. Within the hosting environment, the designer provides the following features to help you create a design-time UI for users of the control:
Design-time rendering and content of the ◆ ASP.NET control designer.
The control designer enables a variety of rendering, including simple and complex rendering. Zone-based editing and template editing are examples of a variety of design-time UI that can be provided to controls. You can also provide column editing or multiple run-time views on the control, so developers who use the control at design time can choose from a set of options on how to render the control at run time.
Other design-time classes for the ◆ ASP.NET control designer.
In addition to designer classes, there are type converter classes that are associated with types or properties and perform type conversions (string-to-value conversions). There is also a UI type editor class that provides a dedicated UI for editing attributes. For example, the color picker drop-down list in the properties pane allows you to select a color for the color property on the Web control. You can also create a dedicated component editor, which is a class that provides overall editing of the control's properties.
Persistence of data for the associated control of the ◆ ASP.NET control designer.
The internal properties and contents of the control can be maintained, so the control and its child controls can remain in state in the design-time environment. This is controlled by how the configuration control is defined in the tag.
When creating a control designer for a Web server control, there are several base classes that you may want to use:
(1) ControlDesigner
Provides a base class for design-time support for Web server controls.
(2) ContainerControlDesigner
A simple base class for containment controls that provides editing capabilities for the collection of child controls of the control. This designer provides a freely editable area, and hosts, such as VisualStudio2005, automatically provide all renderings.
(3) CompositeControlDesigner
Provides a base class that is supported at design time for rendering composite Web server controls. It also provides programmatic control over child control rendering.
(4) DataSourceDesigner, BaseDataBoundControlDesigner and HierarchicalDataSourceDesigner
These base classes provide design-time support for data sources and data-bound controls and can communicate with each other.
Thank you for reading this article carefully. I hope the article "what is the use of ASP.NET Control designer" shared by the editor will be helpful to you. At the same time, I also hope that you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.