无法清除图像控件中的图像 [英] Unable to clear the image in the image control
本文介绍了无法清除图像控件中的图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
i创建了一个应用程序,我可以在WPF中的图像控件中上传图像。
i建立了连接和crud操作完美无缺。
我想用清除按钮清除文本框的内容。
但是我不知道如何从图像控件中清除图像。
请帮助。
解决方案
如何清除WPF中的图像控件(C#) [ ^ ]
或者你也可以试试这个:
ImageCtrl.Source = null ;
Hi,
i have created a application in which i can upload images in the image control in WPF .
i have established the connection and crud operations are done perfectly.
I want to clear the contents of the textbox by using a clear button.
But i dont know how to clear the image from the image control.
Please help.
解决方案
How to Clear an image control in WPF (C#)[^]
or else you can try try this as well :
ImageCtrl.Source = null;
这篇关于无法清除图像控件中的图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文