Skip to Content
.NET Windows® Forms Custom Controls
book

.NET Windows® Forms Custom Controls

by Richard Weeks
January 2002
Intermediate to advanced
288 pages
5h 48m
English
Sams
Content preview from .NET Windows® Forms Custom Controls

Creating Extender Providers

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. ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Pro .NET 5 Custom Libraries: Implementing Custom .NET Data Types

Pro .NET 5 Custom Libraries: Implementing Custom .NET Data Types

Roger Villela
Professional C# 5.0 and .NET 4.5.1

Professional C# 5.0 and .NET 4.5.1

Christian Nagel, Jay Glynn, Morgan Skinner

Publisher Resources

ISBN: 0672323338Purchase book