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

Last change on this file since 1892 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: 769 bytes
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 ToolbarVisibilityConverter : IValueConverter
11    {
12        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
13        {
14            bool b = (bool)value;
15            if (b)
16                return Visibility.Visible;
17            else
18                return Visibility.Hidden;
19        }
20
21        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
22        {
23            throw new NotImplementedException();
24        }
25    }
26}
Note: See TracBrowser for help on using the repository browser.