public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { if (value == null) { return(null); } return(GalleryCacheProvider.GetThumbnailImageWidth((string)value)); }
private void MainWindow_Closing(object sender, System.ComponentModel.CancelEventArgs e) { MainViewModel.Dispose(); Application.Current.MainWindow = null; GalleryCacheProvider.ClearCache(); }