Chapter 11. Resources

Two Types of Resources

WPF uses the term resource to refer to two different types of things:

  • The first type of resource refers to items used by the program that aren't created by the program's source code. These include, for example, images or icons that are supplied from outside the code.

    • These are resources in the common sense of the term as it's been used since the beginning of Windows programming.

    • These are also called assembly resources or binary resources if they are compiled into the binary.

  • WPF also uses the term in a new way, to describe .NET code objects that are stored in an object dictionary and then used at various places throughout the code.

    • These are usually associated with XAML markup but can also be used in the ...

Get Illustrated WPF now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.