Prev | Current Page 227 | Next

Matthew MacDonald

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

As the user resizes the column
in one Grid, the shared column in the other Grid will follow along, resizing itself at the same
time.
CHAPTER 4 n LAYOUT 104
Figure 4-16. Shared-size columns remain synchronized.
Creating a shared group is easy. You simply need to set the SharedSizeGroup property on
both columns, using a matching string. In the current example, both columns use a group
named TextLabel:








A text box

...






A text box

There??™s one other detail. Shared size groups aren??™t global to your entire application
because more than one window might inadvertently use the same name.


Pages:
215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239