O'Reilly logo

Mastering LOB Development for Silverlight 5: A Case Study in Action by Rocío Serrano, Braulio Díez

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating windows and controls

At most times, when we develop an application, it is not possible to fit all the content in just one page. Even if we were able to do so, sometimes it is preferable to divide the content in several parts and group areas by functionality or reusability. On other occasions, we may need other windows, such as modal dialogs, to show other information to the user. Finally, we should not forget that the application may get bigger and we could need more pages for all of its functionality.

UserControl

Let us begin by talking about the most versatile and easiest control to use, UserControl.

It consists of two parts, Interface definition (XAML) and Code (Code-Behind).

In a new Project, the main page inherits from this control. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required