Summary

In this chapter, you learned about each of the methods available to you to create reusable controls for use in your applications. Which method you should use really depends on what you are trying to achieve:

  • Inherit from an existing control if you simply want to add your own additional behavior to it.
  • User controls are best for encapsulating some common functionality that is more or less specific to a single project, and is of limited complexity.
  • Custom controls are best when you want to create a more generic control that might be used in other projects or needs to be templatable.
  • Content controls enable your control to act as a container for other controls.

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

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