source: trunk/CrypPlugins/WorkspaceManager/View/Converter/BlurIconConverter.cs @ 1892

Last change on this file since 1892 was 1807, checked in by matkovic, 11 years ago

-Logging added
-Progress bar added
-DataPresentation now updating
-PluginContainerView complete rebuilt
-Several images added

File size: 1.1 KB
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using System.Windows.Data;
6using System.Windows;
7
8namespace WorkspaceManager.View.Converter
9{
10    class BlurIconConverter : IValueConverter
11    {
12        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
13        {
14            Visibility visibility = (Visibility)value;
15            double blur = 0;
16            switch (visibility)
17            {
18                case Visibility.Hidden:
19                    blur = 0;
20                    break;
21                case Visibility.Collapsed:
22                    blur = 0;
23                    break;
24                case Visibility.Visible:
25                    blur = 10;
26                    break;
27            }
28
29            return blur;
30        }
31
32        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
33        {
34            throw new NotImplementedException();
35        }
36    }
37}
Note: See TracBrowser for help on using the repository browser.