Designer Verbs


As mentioned earlier in the chapter, a designer verb represents a command on the design surface. Designer verbs are an integral part of the designer specification. Every designer can offer a collection of designer verbs, as specified in the System.ComponentModel.Design.IDesigner interface:

 DesignerVerbCollectionVerbs{get;} 

Each member of the Verbs collection is a System.ComponentModel.Design.DesignerVerb or a class that derives from it.

In the ContactInfoDesigner example presented earlier in this section, we created a template editing verb ( TemplateEditingVerb ) that launches the templated editing UI. TemplateEditingVerb derives from DesignerVerb .

We'll show you another example of a designer that creates a designer verb in the "Component Editors" section of this chapter



Developing Microsoft ASP. NET Server Controls and Components
Developing Microsoft ASP.NET Server Controls and Components (Pro-Developer)
ISBN: 0735615829
EAN: 2147483647
Year: 2005
Pages: 183

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net