Click here to Skip to main content
15,892,161 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a usercontrol which has 2 lables, a button and an image.

The image is showing in usercontrol page but when I am trying to access that user control in other pages I am unable to see that Image:
XML
<image alignment="Top">
        Source="Images\abcd.PNG" 
        Height="39" Grid.Column="1" 
        Margin="0,7,293,0" Width="55" 
       x:Name="importimg"  />
</image>


This is what I have in usercontrol...

Help is always appreciated...
Posted
Updated 4-Jan-11 0:48am
v3
Comments
Nishant Singh 6-Dec-10 3:53am    
May not be able to resolve the Image Souce URL .
Dalek Dave 4-Jan-11 6:48am    
Minor Edit for Grammar and Readability.

1 solution

My best guess is that the path "Images\abcd.PNG" is not correctly resolved relative to the page.

Regards
Espen Harlinn
 
Share this answer
 
Comments
Dalek Dave 4-Jan-11 6:49am    
Sounds reasonable.
Always best to check paths/urls when creating new pages for precisely this problem.

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