项目运行时不显示图像 [英] image is not showing while project running

查看:96
本文介绍了项目运行时不显示图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好

i正在使用wpf app.i想在我的wpf窗口显示一个图像,因为我在XAML代码下方使用

- < Image Source =... / Icon / Login.icoGrid.RowSpan =3/>

它在窗口上显示但我运行的项目在运行时plz帮助不可见..

Hi all
i am working on wpf app.i want to show one image on my wpf window for that i am using below XAML code
-<Image Source=".../Icon/Login.ico" Grid.RowSpan="3"/>
its showing on window but i run project its not visible on runtime plz help..

推荐答案

您好,



您正在使用图像的相对路径。只是检查使用绝对路径并检查图像是否正常。如果是这样,那么你给出的相对路径是错误的。纠正相对路径。
Hi,

You are using a relative path for image . Just to check use an absolute path and check if the image is coming properly. if so then the relative path what you have given is wrong. Correct the relative path.


这篇关于项目运行时不显示图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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