January 2002
Intermediate to advanced
288 pages
5h 48m
English
Extender Providers are created by implementing the IExtenderProvider interface. This interface has only a single method: bool CanExtend( object target ). This method is used to determine whether the provider can extend the target object. Generally, Extender Providers are designed to work only with specific types of components as in the case of the ToolTip Extender Provider. The ToolTip will only add the ToolTip property to Control-derived objects and will not extend MenuItems.
Adding properties to objects being extended is twofold. First the Extender Provider must use the ProvideProperty attribute. This attribute is applied to the Extender Provider class. Listing A.1 shows an example based on the ToolTip extender provider. ...