How to refer to Embedded Resources from XAML?

When you set the BuildAction to Resource it goes as embedded resource in an assembly.
Or you can set BuildAction to Content then it will bundled into the resulting .xap file.
You can use any one of these BuildActions. By setting BuildAction to Content you can access Image like:
"/Resources/Images/darkaurora.png" (must begin with slash). And when you use the BuildAction Resource then you can access image as "/YearBook;component/Resources/Images/darkaurora.png" (assemblyname;component/relativepath). Hope this will help.

Leave a Comment