exe compiler that handles this task. The compiled code becomes
a single assembly (EightBall.exe) and the BAML for each window is embedded as a separate
resource.
XAML Only
The previous sections show you how to use XAML from a code-based application. As a .NET
developer, this is what you??™ll spend most of your time doing. However, it??™s also possible to use
a XAML file without creating any code. This is called a loose XAML file. Loose XAML files can
be opened directly in Internet Explorer. (Assuming you??™ve installed the .NET Framework 3.0 or
are running Windows Vista, which has it preinstalled.)
nNote If your XAML file uses code, it can??™t be opened in Internet Explorer. However, you can build a
browser-based application that breaks through this boundary. Chapter 9 describes how.
CHAPTER 2 n XAML 56
At this point, it probably seems relatively useless to create a loose XAML file??”after all,
what??™s the point of a user interface with no code to drive it? However, as you explore XAML
you??™ll discover several features that are entirely declarative. These include features such as animation,
triggers, data binding, and links (which can point to other loose XAML files). Using
these features, you can build a few very simple no-code XAML files. They won??™t seem like complete
applications, but they can accomplish quite a bit more than static HTML pages.
Pages:
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167