Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
Posted

1 solution

How to Clear an image control in WPF (C#)[^]
or else you can try try this as well :
C#
ImageCtrl.Source = null;
 
Share this answer
 
Comments
Sophia Ranjani Elango 17-Dec-12 1:19am    
thank you krunal i got it solved .
[no name] 17-Dec-12 1:34am    
Welcome.. :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900