Using resource files


show more Using resource files provides you with in-depth training on Developer. Taught by Walt Ritscher as part of the Silverlight 5 Essential Training show less
please wait ...

Using resource files

Most applications have files that are affiliated with the program but aren't source code or part of the runtime. These could be image files, sound effects, or sample documents. The key is that these are binary files that must be shipped with your application. In Silverlight, it's trivial to bundle these files with your assembly. It is also easy to extract these resources and use them in your application. In fact, some controls, like the image control, can extract the resource with just a URI location, no code necessary. For this demonstration, I am using Visual Studio and a project called UsingBundledResources.

Let's start by looking at my resources. They are over here in my Images folder. I have a resource file that I want to include with my application. This first JPG is marked as a resource file; you can see that down here in the Properties window, Build Action equal Resource. When you mark an item as a resource it is embedded in the dll file. This makes the dll larger. This sec...

Using resource files
Video duration: 3m 53s 8h 52m Beginner

Viewers:

Using resource files provides you with in-depth training on Developer. Taught by Walt Ritscher as part of the Silverlight 5 Essential Training

Subject:
Developer
Software:
Silverlight Visual Studio
Author:
please wait ...