Appendix A. Extender Providers

IN THIS CHAPTER

Although not a control, Extender Providers allow for properties to be added to .NET components. The ToolTip component is an example of an Extender Provider. The ToolTip component allows a ToolTip window to be associated within one or more controls on a form. The ToolTip component adds the ToolTip property to each control on the form. This ToolTip property is then displayed in the Property Browser when a control is selected.

To see how to implement and use Extender Providers, two separate components will be created. The first component will be used to highlight a control when the mouse passes over it. This Extender Provider will enable the highlight to be specified during design-time. In addition to this first extender, a second extender will be implemented to provide feedback for menu options. This second extender will demonstrate how to apply extenders to classes such as the MenuItem component that are not derived from the Control base class.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.135.200.211