I'm using an pictue, first load the picture to a image control in xaml:
<Image Name="pic" Height="550" Width="400" Source="{Binding img}" Stretch="Fill"/>
After loading to image, i want delete the source file, and also delete from teh image control.
Button click:
pic.Source = null;
StorageFile sf = null;
StorageFolder sd = ApplicationData.Current.LocalFolder;
sf = await sd.GetItemAsync("imgs\\img") as StorageFile;
await sf.DeleteAsync();
But :Access Denied.
I use this:
pic.Source = null;
but same problem. How can i delete the image ?
Thans for all reply!