source: trunk/CrypPlugins/WorkspaceManager/View/Converter/IconPanelVisibilityConverter.cs @ 1807

Last change on this file since 1807 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.2 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 IconPanelVisibilityConverter : IValueConverter
11    {
12        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
13        {
14            Visibility visibility = (Visibility)value;
15            switch (visibility)
16                {
17                    case Visibility.Hidden:
18                        visibility = Visibility.Visible;
19                        break;
20                    case Visibility.Collapsed:
21                        visibility = Visibility.Visible;
22                        break;
23                    case Visibility.Visible:
24                        visibility = Visibility.Collapsed;
25                        break;
26                }
27
28            return visibility;
29        }
30
31        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
32        {
33            throw new NotImplementedException();
34        }
35    }
36}
Note: See TracBrowser for help on using the repository browser.