How to: Implement a Designer for a Control
This topic describes how to implement a designer (HelpLabelDesigner) for the HelpLabel extender provider control described in the How to: Implement a HelpLabel Extender Provider. The designer is a nested class in the HelpLabel control. The designer code example demonstrates the following points:
-
HelpLabelDesigner derives from ControlDesigner.
-
HelpLabelDesigner provides a designer verb by overriding the Verbs property specified in the IDesigner interface. At design time, verbs appear as commands on the object that is associated with the designer. For more information, see Designer Verbs.
-
HelpLabelDesigner adds a design-time property (TrackSelection) to HelpLabel by overriding the PreFilterProperties method specified by the IDesignerFilter interface. For more information about adding or replacing properties and events, see Metadata Filtering.
The following code example contains the code for the designer.
Note
|
|---|
|
The following designer code by itself will not compile. Instead, compile the example in How to: Implement a HelpLabel Extender Provider, which contains the code for the designer as a nested class. |
Note