Click here to Skip to main content
15,892,746 members
Please Sign up or sign in to vote.
1.62/5 (4 votes)
See more:
C#
//condition here
if(label.Content.ToString().Equals("someName")){
BitmapImage image = new BitmapImage(new Uri("abc.JPG", UriKind.Relative));
imageCon.Source = image;
}


but i cant display the image on the imageCon, any help?
Posted
Updated 30-Dec-13 3:59am
v2
Comments
Maarten Kools 30-Dec-13 9:57am    
A little bit more context wouldn't hurt. What kind of object is image? And what exactly is the problem?
Jamie888 30-Dec-13 10:04am    
problem solved, just remove the "UriKind.Relative" will do, thanks

1 solution

Answered only to remove from unanswered list - solved by OP.
 
Share this answer
 

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