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

Last change on this file since 1991 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: 959 bytes
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using System.Windows.Data;
6using System.Windows.Controls;
7using System.Windows;
8
9namespace WorkspaceManager.View.Converter
10{
11    class OptionTextCaptionConverter : IValueConverter
12    {
13        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
14        {
15            if (value == null)
16                return null;
17
18            Border element = (Border)value;
19
20            if (element.Child == null)
21                return null;
22            Button button = (Button)element.Child;
23            String caption = (String)button.ToolTip;
24
25            return caption;
26        }
27
28        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
29        {
30            throw new NotImplementedException();
31        }
32    }
33}
Note: See TracBrowser for help on using the repository browser.