Skip to main content
Home Forums Silverlight Design Designing with Silverlight image resource loading problem
3 replies. Latest Post by Jonathan Shen – MSFT on November 9, 2009.
(0)
maephisto
Member
2 points
8 Posts
11-03-2009 4:15 AM |
I have an user control held in (app root)/controls/Devices/usercontrol.xaml in wich i need to load an image held in (app root)/resources/images/image.png , using an <image> element. What sould it be the source for the <image source="?"> ?
Thanks!
bharathk...
280 points
51 Posts
11-03-2009 4:18 AM |
hai maephisto,
Do like this sourse="../images/image.png"
bykinag
137 points
11-03-2009 5:13 AM |
Guaranteed way to get image
XAML CODE: <Image Source="/YOUR_PROJECT_NAME;component/Images/Image.png"/>
Jonathan...
All-Star
24939 points
2,425 Posts
11-09-2009 4:37 AM |
Hi Maephisto,
That's based on source code structure. What's your app root? Do you mean Silverlight application or Web application? Generally, for the url path related issue, we can use a request detector, such as Fiddler, Web Development Helper, HttpWatch etc to get the request details.
Best regards,
Jonathan