NET objects. Although XAML is a technology that can be
applied to many different problem domains, its primary role in life is to construct WPF user
interfaces. In other words, XAML documents define the arrangement of panels, buttons, and
controls that make up the windows in a WPF application.
It??™s unlikely that you??™ll write XAML by hand. Instead, you??™ll use a tool that generates the
XAML you need. If you??™re a graphic designer, that tool is likely to be a graphical design and
drawing program such as Microsoft Expression Blend. If you??™re a developer, you??™ll probably
start with Visual Studio. Because both tools are equally at home with XAML, you can create a
basic user interface with Visual Studio and then hand it off to a crack design team that can
polish it up with custom graphics in Expression Blend. In fact, this ability to integrate the
workflow between developers and designers is one of the key reasons that Microsoft created
XAML.
In this chapter, you??™ll get a detailed introduction to XAML. You??™ll consider its purpose, its
overall architecture, and its syntax. Once you understand the broad rules of XAML, you??™ll know
what is and isn??™t possible in a WPF user interface??”and how to make changes by hand when
it??™s necessary. More importantly, by exploring the tags in a WPF XAML document you can learn
a bit about the object model that underpins WPF user interfaces and get ready for the deeper
exploration to come.
Pages:
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112