source: trunk/CrypPlugins/WorkspaceManager/View/Converter/PluginModelImageConverter.cs @ 2280

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

-fixed "Fit to Screen"
-fixed Scrollbars
-fixed Dragging
-added custom names
-New: IControl- Presentation
--Loading adjusted
-New: Multi selection
-New: Copy /Past (not complete)
-New: Multi Dragging
-New: PluginContainerView Highlighting added

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