Chapter 2: Understanding the Basics of WPF

In This Chapter

check.png Laying out applications

check.png Using layout panels

check.png Working with the grid

check.png Implementing display-only, input, and list-based controls

As Chapter 1 explains, WPF brings not only a dramatic shift to the look and feel of Windows applications but also changes the manner of development. The days of dragging and dropping controls from the toolbox onto a form are long gone. Even though it is still possible to drag and drop in WPF, you will find yourself better off and much happier if you work in XAML directly.

What was once difficult is now relatively simple. For example, in traditional Windows applications, when the user changes the size of the form, the controls typically stay huddled in their corner and a large area of empty canvas is displayed. The only cure for this was a lot of custom code or expensive third-party controls. WPF brings the concept of flow layout from the web into the Windows world.

In the GDI/GDI+ world of WinForms, modifying a control’s style or building complex looks was a Herculean feat. WPF has completely redefined ...

Get C# 5.0 All-in-One For Dummies now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.