Skip to main content

Resources

  • Chapter
Pro WPF with VB 2008
  • 172 Accesses

Abstract

In WPF applications, there are two very different ingredients that are both described as resources:

  • An assembly resource is a chunk of binary data that’s embedded in your compiled assembly. You can use an assembly resource to make sure your application has an image or sound file it needs.

  • An object resource is a .NET object that you want to define in one place and use in several others. Although an object resource can be created in code, it’s usually defined in XAML markup. This type of resource saves repetitive coding and allows you to store information (such as your application’s color scheme) in a central place so it can be modified easily. Object resources are also the basis for reusing WPF styles.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

eBook
USD 16.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Rights and permissions

Reprints and permissions

Copyright information

© 2008 Matthew MacDonald

About this chapter

Cite this chapter

(2008). Resources. In: Pro WPF with VB 2008. Apress. https://doi.org/10.1007/978-1-4302-0590-6_11

Download citation

Publish with us

Policies and ethics