Chapter 3. Introducing Windows Presentation Foundation: A Richer Desktop UI Experience

Unlike Windows Forms applications, but much like ASP.NET applications, Windows Presentation Foundation (WPF) applications contain both "markup" (XAML) and the "code-behind" that together correspond to the .NET class libraries. As demonstrated in the previous chapter, you can use XAML to create very powerful layouts and displays. However, WPF goes beyond that, using XAML and code-behind to create complete applications that provide enhanced text, 2-D and 3-D graphics, and much more.

The best way to think about WPF is as a framework of classes that Microsoft provides for you. You implement these classes either programmatically, by instantiating them in code, or declaratively, by using XAML.

In Chapter 4 you'll build a significant business application that uses many features of WPF. To prepare you for that, this chapter will build on the previous chapter and introduce more of the features of WPF that you are likely to use in creating your applications.

Starting Simple: Panels

One challenge with every markup language ...

Get Programming .NET 3.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.