Visual Studio 2012的解决方案资源管理器无法识别图像 [英] Solution Explorer of visual studio 2012 can't identify images

查看:135
本文介绍了Visual Studio 2012的解决方案资源管理器无法识别图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先,我将我的splshscreen,logo,wide logo etc(.png文件)设置到我的地铁应用程序项目中,它运行良好。



但现在我想在图像控件中添加图像到我的表单/页面。但是图像控件的'source'属性没有显示我新添加的图像。



即使解决方案资源管理器显示该图像。我刷新了解决方案资源管理器并尝试重新启动视觉工作室但没有运气。



要在解决方案资源管理器中查看我的图像,我必须启用显示所有文件选项,但它仍然没有将我的图像识别为我之前添加的图像。



提前感谢......请帮助...

first of all i've set my splshscreen, logo, wide logo etc (.png file) to my metro app project, and it is working perfectly.

but now i want add an image to my form/page within image control. but the 'source' property of the image control is not showing my newly added image.

Even the solution explorer is showing that image. i refreshed the solution explorer and tried even restarting the visual studio but no luck.

To see my image in solution explorer, i had to enable the 'show all files' option, but still it is not recognizing my image as an image that i added previously.

thanks in advance...... pls help...

推荐答案

请在您的xaml中尝试此代码



将图像源设置为Source =Assets\SplashScreen。 png



谢谢,

Bilaal
Please try this code in your xaml

set Image source as Source="Assets\SplashScreen.png"

Thanks,
Bilaal


这篇关于Visual Studio 2012的解决方案资源管理器无法识别图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆