用户控件的图像 [英] Image of user control

查看:58
本文介绍了用户控件的图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个用户控件,其中有2个标签,一个按钮和一个图像.

该图像显示在usercontrol页面中,但是当我尝试在其他页面中访问该用户控件时,我看不到该图像:

I have a usercontrol which has 2 lables, a button and an image.

The image is showing in usercontrol page but when I am trying to access that user control in other pages I am unable to see that Image:

<image alignment="Top">
        Source="Images\abcd.PNG" 
        Height="39" Grid.Column="1" 
        Margin="0,7,293,0" Width="55" 
       x:Name="importimg"  />
</image>



这就是我在usercontrol中所拥有的...

总是可以得到帮助...



This is what I have in usercontrol...

Help is always appreciated...

推荐答案

我最好的猜测是相对于页面而言,路径"Images \ abcd.PNG"没有正确解析. >
问候
Espen Harlinn
My best guess is that the path "Images\abcd.PNG" is not correctly resolved relative to the page.

Regards
Espen Harlinn


这篇关于用户控件的图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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