C#WPF设置图像从搜索中...... [英] C# WPF setting image from recoures.........

查看:115
本文介绍了C#WPF设置图像从搜索中......的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在系统资源库中设置图像?就像我有一个image1,但我不知道如何使用C#中的代码(而不是WPF代码,C#代码)在其中放置图像,我的意思是,不是<>我的意思是();,所以有人可以告诉我怎么做吗?

how do i set an image in system recources? like i have a image1 but i don''t know how to put a image in there using code from C#, not the WPF code, the C# code, i mean like, not the <> i mean the ();, so yeh can some one please tell me how?

推荐答案

我用Google搜索了一个代码示例(尽管我知道该怎么做)它,我这里没有IDE),并在网络上找到了大量示例.

这里是一个 [ ^ ].
I googled to find a code sample for you ( although I know how to do it, I don''t have an IDE here ) and found tons of examples on the web.

Here''s one[^].


这篇关于C#WPF设置图像从搜索中......的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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