0

How can I stop <Image Source="file path"/> process? I want to stop this proccess because i can't use File.Delete();

Soner Gönül
  • 97,193
  • 102
  • 206
  • 364

1 Answers1

1

Try this: XAML:

<Image Source="file path" x:Name="image"/>

C#:

image.Source = null; 
System.IO.File.Delete(@"C:\person.gif"); 
Ringo
  • 3,795
  • 3
  • 22
  • 37