Image doesn't Dispaly On Run Time

39 Views Asked by At

I am using below code for display image in Image button in silverlight.

My problem is the Image Getting display on Design Time.

But I cant able to view that Image on Runtime.What are the changes need to solve the issue and I tried to using both (Front and Back) slashes.

Image HorizontalAlignment="Left" Height="155" Margin="10,46,0,0" VerticalAlignment="Top" Width="164" Source="C:/Users/Username01/Desktop/Lync.png"/>
1

There are 1 best solutions below

0
DeshDeep Singh On BEST ANSWER

try this way if it showing error, make a folder in your project thorugh visual studio add, images to that folder and pass the path like this: <Image Source="Images\Lync.png" Stretch="Fill"/>