Click here to Skip to main content
15,887,027 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am new to silverlight4.I want to put image in silverlight application.I kept the image in images folder inside the application.
I put source of image as source="images/fruits.jpg"
But its showing warning as the file is not part of project or its 'Build Action' property is not set to 'Resource'.
While executing it its shows nothing.

Thanks in advance.
Posted
Updated 26-Apr-12 1:57am
v2

1 solution

In the solution explorer of your project right click on fruits.jpg and go to properties set the Build Action property to Resource. And then build the project.

Hope it helps :)
 
Share this answer
 
Comments
akee seth 26-Apr-12 8:56am    
But the image is not displaying in solution explorer also.
After that i put the whole address (with drive),then image is displayed in design but not in solution explorer or after execution.
Uday P.Singh 26-Apr-12 11:30am    
refresh the project and click on show all files!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900