Extender controls allows you to extend functionality of exiting controls in a form without subclasing. You have to only drag the extender control to the form and there you go ..... all the controls in the form are equipped with the new functionality.
The basics are very simple, and you have to build the rest according to your needs. End of this article I have presented some interesting things that can be done using this technique. Extender control is a component so you have inherit your class from a component and implement the IExtenderProvider interface.
public class HelloWorldComponent : Component,IExtenderProvider
IExtenderProvider interface is very simple. You have to only implement the CanExtend method.
public bool CanExtend(object extendee)
if (extendee is Control && !(extendee is HelloWorldComponent))
The above will extend all the controls in a form (win or web) with properties extended from extender control. You can introduce one to many properties to controls in a form using one extender control. For introduce a property you have implement two methods Set
Interesting things you can do with Extender Controls
1) UI Security Implementations
2) Two Way Data Binding in ASP.NET for simple controls like text boxes and radio buttons
The casino with roulette machines | Vannienailor4166 Blog
Casino roulette game is one of the www.jtmhub.com most popular casino games in Malaysia. poormansguidetocasinogambling It offers the latest games with 토토 the best https://vannienailor4166blog.blogspot.com/ odds, หาเงินออนไลน์ with big payouts and easy
Post a Comment