Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
 public void Remove(FileElement fe)
 {
     _allFiles.Remove(fe);
 }