Using binary resources
Binary resources are just that: chunks of bytes that typically mean something to the application, such as image or font files. In this recipe, we'll cover the basics of adding and using a binary resource.
Make sure Visual Studio is up and running.
How to do it...
We'll create a simple application that uses an image file added as a binary resource:
- Create a new WPF Application named
- Let's add a logical images folder to the project. Right-click the project node in Solution Explorer, and select Add | New Folder.
- The folder is created as
NewFolder1. Change its name to
- Right-click on the newly ...