private void SetImageSource(FileElement file) { Title = file.FileName; ((BlurEffect)image.Effect).Radius = 0; image.Visibility = Visibility.Visible; label.Visibility = Visibility.Hidden; var src = new BitmapImage(); src.BeginInit(); src.UriSource = new Uri(file.FileName); src.CacheOption = BitmapCacheOption.OnLoad; src.EndInit(); src.Freeze(); image.Source = src; using (var t = _files.GetTags()) { foreach (var tag in t) { tag.Color = TagMatch(tag); } } UpdateTagList(); }
public void Remove(FileElement fe) { _allFiles.Remove(fe); }