Prev | Current Page 218 | Next

Matthew MacDonald

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

ColumnSpan="2">
Span Button
Row and column spanning can achieve some interesting effects and is particularly handy
when you need to fit elements in a tabular structure that??™s broken up by dividers or longer sections
of content.
Using column spanning, you could rewrite the simple dialog box example from Figure 4-11
using just a single Grid. This Grid divides the window into three columns, spreads the text box
over all three, and uses the last two columns to align the OK and Cancel buttons.
CHAPTER 4 n LAYOUT 98











This is a test.




Most developers will agree that this layout isn??™t clear or sensible. The column widths are
determined by the size of the two buttons at the bottom of the window, which makes it difficult
to add new content into the existing Grid structure.


Pages:
206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230