source: trunk/CrypPlugins/WorkspaceManager/View/Converter/ViewStateIconConverter.cs @ 1991

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

-Fullscreen enhanced
-TextInput added
-Picture scaling added
-Textinput scaling added
-Textinput format command added
-Several style changes
-Progressbar redesigned
-Last log message now appearing
-IControlContainer commenced
-Several icons added
-Plugin state now stored and loaded
-Plugin height and width now storing and loading
-Several misc changes

File size: 1.1 KB
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using System.Windows.Data;
6using WorkspaceManager.View.Container;
7using System.Windows.Media.Imaging;
8
9namespace WorkspaceManager.View.Converter
10{
11    class ViewStateIconConverter : IValueConverter
12    {
13        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
14        {
15            PluginViewState state = (PluginViewState)value;
16            BitmapImage image = null;
17            if (state == PluginViewState.Min)
18            {
19                image = new BitmapImage(new Uri("../Image/maxi.png", UriKind.RelativeOrAbsolute));
20                return image;
21            }
22            else
23            {
24                image = new BitmapImage(new Uri("../Image/minimize.png", UriKind.RelativeOrAbsolute));
25                return image;
26            }
27        }
28
29        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
30        {
31            throw new NotImplementedException();
32        }
33    }
34}
Note: See TracBrowser for help on using the repository browser.