This is a migrated thread and some comments may be shown as answers.

How do reference embedded image resource?

1 Answer 125 Views
Navigation
This is a migrated thread and some comments may be shown as answers.
Happy
Top achievements
Rank 1
Happy asked on 30 Mar 2010, 10:06 PM
I'm trying to setup a toolbar control and can't get it to show my images unless I create an image directory within my ClientBin. 

1) Is there any way to provide a path outside the ClientBin? I tried .. to get out but it doesn't work.
2) Can I embedded my image as a static resource by just including it in silverlight project, setting it as a resource, and just somehow reference that embedded image from the source property. This is the option I'd prefer.

1 Answer, 1 is accepted

Sort by
0
Happy
Top achievements
Rank 1
answered on 30 Mar 2010, 10:19 PM
Never mind. Figured it out. That usually happens right after I take the time to post.

Need to set the file property to "Content".
Tags
Navigation
Asked by
Happy
Top achievements
Rank 1
Answers by
Happy
Top achievements
Rank 1
Share this question
or