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

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

-fixed pathfinding
-fixed line drawing
-added Colorpicker
-fixed lock/unlock at TextInputWrapper
-feature: Background and TextForeground in TextInputWrapper added
-fixed a issue With loading and such
-WorkspaceModel doesn't throw exception anymore (Samples functional again)
-fixed some Styles
-Startable implemented and loaded right
-Startable Logo moved

File size: 748 bytes
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using System.Windows.Data;
6using System.Windows.Media;
7
8namespace WorkspaceManager.View.Converter
9{
10    class TransparentColorConverter : IValueConverter
11    {
12        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
13        {
14            if (value is VisualBrush)
15                return Brushes.Transparent;
16            else 
17                return value;
18        }
19
20        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
21        {
22            throw new NotImplementedException();
23        }
24    }
25}
Note: See TracBrowser for help on using the repository browser.