Prev | Current Page 245 | Next

Matthew MacDonald

"Pro WPF with VB 2008: Windows Presentation Foundation with .NET 3.5"

You??™ll try out these containers in Chapter 5.
??? The Viewbox. Need a way to resize graphical content (such as images and vector drawings)?
The Viewbox is yet another specialized container that can help you out, and it has
built in scaling. You??™ll take your first look at the Viewbox in Chapter 5.
??? Text layout. WPF adds new tools for laying out large blocks of styled text. You can use
floating figures and lists, and use paging, columns, and sophisticated wrapping intelligence
to get remarkably polished results. You??™ll see how in Chapter 19.
CHAPTER 4 n LAYOUT 117
Content
In the previous chapter you explored the WPF layout system, which lets you arrange a window
by placing elements into specialized layout containers. With this system, even a simple
window breaks down to a nested series of Grid, StackPanel, and DockPanel containers. Dig
deep enough and you??™ll eventually find the visible elements (widgets such as buttons, labels,
and text boxes) inside the various containers.
However, the layout containers aren??™t the only example of nested elements. In fact, WPF
is designed with a new content model that lets you place elements inside other elements that
are otherwise ordinary. Using this technique, you can take many simple controls??”such as
buttons??”and place pictures, vector shapes, and even layout containers inside.


Pages:
233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257