Prev | Current Page 23 | Next

Matthew MacDonald

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

. . . . . . . . . . . . . . . . 344
nCONTENTS xii
System Resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 344
Organizing Resources with Resource Dictionaries. . . . . . . . . . . . . . 346
Sharing Resources Between Assemblies . . . . . . . . . . . . . . . . . . . . . 348
The Last Word . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 351
nCHAPTER 12 Styles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 353
Style Basics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 353
Creating a Style Object . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 357
Setting Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 358
Attaching Event Handlers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 360
The Many Layers of Styles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 361
Automatically Applying Styles by Type. . . . . . . . . . . . . . . . . . . . . . . . 363
Triggers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 364
A Simple Trigger .


Pages:
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35