windows 8 - In WinRT XAML, how to reference images in outside/separate assembly/project? -


seems different in winrt (windows 8). figure out yet?

my experiments.

of course:

file build action == content && copy output directory == copy always

these don't seem work:

<image source="folder/file.jpg" /> <image source="/folder/file.jpg" /> <image source="namespace;folder/file.jpg" /> <image source="namespace;/folder/file.jpg" /> <image source="pack://namespace;folder/file.jpg" /> <image source="pack://namespace;/folder/file.jpg" /> 

out of desperation tried:

file build action == embedded resource && copy output directory == copy always

still fail. ugh!

<image source = "ms-appx:///<projectname>/<foldername>/<contentname>" /> 

for example ...

<image source = "ms-appx:///classlibrary1/content/myimage.png" /> 

see how reference content bit more info.


Comments

Popular posts from this blog

How do you change vbulletin's home page to the forums instead of the default (CMS or Activity Stream)? -

c++ - Troubles when compiling phash program -