WPF应用程序中没有显示图像? [英] Image is not displaying in WPF Application ?

查看:87
本文介绍了WPF应用程序中没有显示图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我正在尝试在wpf应用程序中显示图像,但图像没有显示在我的应用程序中,有人为此提供了解决方案..





代码:

< Image Source =   Images / LoadTestInfo.png Stretch =  < span class =code-string>填充 Horizo​​ntalAlignment =   center宽度=   1024高度=   700 VerticalAlignment =   center /> 











提前致谢...





问候

R.Karthik

解决方案

检查文件名,尤其是其相对路径。 (弄清楚:相对于什么路径?)不太可能,你的图像被其他重叠的元素阻挡,所以你可以检查它是暂时删除它们。

-SA

Hi All,

I'm trying to display an image in wpf application but the image is not displaying in my application, someone give solution for this..


Code:

<Image Source="Images/LoadTestInfo.png" Stretch="Fill" HorizontalAlignment="center" Width="1024" Height="700"  VerticalAlignment="center"  />






Thanks in Advance...


Regards
R.Karthik

解决方案

Check up the file name, especially its relative path. (Figure out: relative to what path?) Less likely, your image is blocked by other, overlapping, elements, so you can check it up be removing them temporarily.
—SA


这篇关于WPF应用程序中没有显示图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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