在WPF中,你也许会碰到这种情况,图片在界面打开,想用File.Delate()删除却无法删除。
比如:
XAML:
<Window x:Class="WPF_Testing_Application.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Window1" Height="300" Width