When to use User Control and when to use Custom Control. Simply:
Use Custom Control if:
- If you want to override a control to expand its functionality or restrict it, like TextBox or Button
- If you want your clients to be able to create different ControlTemplate for your control.
Use User Control if
- you want to create a composite of controls to give group of functionality all together.
No comments:
Post a Comment