wpf c#中的动态图像 [英] Dynamic Images in wpf c#

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

问题描述

你好,

我正在设计一个wpf应用程序,我想通过c#whem内容加载动态绑定图像,但我在Click One应用程序中做。所以现在我无法访问Click One App中的图像。

请建议我访问图像的最佳方式,如资源或其他任何方式。万一你去了Resources文件夹。请告诉我如何添加和访问图像。



提前致谢!

Hello ,
I am designing a wpf application, I want to bind the images dynamically via c# whem content loads, but I am doing in Click One application. So now I am unable to access the images from that Click One App.
please suggest me the best ways to access the images like Resources or else any other way. In case if you go for Resources folder. Please let me know how to add and access the images from it.

Thanks in advance!

推荐答案

为此您必须遵循以下指令:



1)右键单击图像



2)然后点击属性



3)预付款



- >将动作构建为嵌入式资源



这将使您的图像成为项目中的资源
for that you have to follow bellow instruction :

1) right click on Image

2) then click on Properties

3) in that Advance

-> Build Action as Embedded Resource

which will make your image as Resource inside project


这篇关于wpf c#中的动态图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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