Here's a screenshot:
How can I display the 'no.png' image?开发者_Python百科 It seems changing it to Resource worked.
How can I change the image in my code-behind c# file?
imgStatus.Source = new ur???
You can use the format like this Source="/YourProjectName;component/images/yes.png" The images folder should be resided in your project root directory. The Visual Studio can automatically generate the path in the image control's property setting panel.
精彩评论