One of the main reasons to introduce CSS in conjunction with
XHTML is the ability to reduce the size of the user interface code and share the
same layout across several pages and elements. This could allow for
consistency between pages. XAML, which is a markup language to declare user
interfaces in .NET 3.0 and Windows Vista, comes with the concept of resources
to produce the same functionality.
By having resources in hand, we can declare a look and use
it several times across a page or application.
Resource management is actually a part of the Windows
Presentation Foundation, but I will discuss it as a part of my XAML tutorials
because they are correlated together.
In this article I introduce resources in XAML and how to use
them to declare a constant look across controls, windows, pages or whole application.