If you set the action to “Content”, the image will be included “as is” in XAP. If you set the action to Resource, the image will be embedded in the shared DLL.
In many situations, you can use either. There may be a performance problem or another problem using one and not the other, but I do not know and never noticed.
Why is it worth it? If I don’t need to specifically make it a resource, I use content.
Using current (beta) tools, I saw that VS complains that images directly referenced in XAML should be set to Resource (if Content is installed), but the application works fine with any of them. Hope this is a problem that will be addressed in RTM tools.
For more information, see the discussion in What are the various “Build action” settings in Visual Studio project properties and what do they do?
Matt lacey
source share