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.

Get Pro Business Applications with Silverlight 5 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.