diff options
Diffstat (limited to 'Gestor.Application/Converters/ExpanderHeaderConverter.cs')
| -rw-r--r-- | Gestor.Application/Converters/ExpanderHeaderConverter.cs | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/Gestor.Application/Converters/ExpanderHeaderConverter.cs b/Gestor.Application/Converters/ExpanderHeaderConverter.cs deleted file mode 100644 index 66c167b..0000000 --- a/Gestor.Application/Converters/ExpanderHeaderConverter.cs +++ /dev/null @@ -1,41 +0,0 @@ -using System;
-using System.Globalization;
-using System.Windows.Data;
-using System.Windows.Markup;
-
-namespace Gestor.Application.Converters
-{
- public class ExpanderHeaderConverter : MarkupExtension, IValueConverter
- {
- public ExpanderHeaderConverter()
- {
- }
-
- public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
- {
- if (value == null)
- {
- return "";
- }
- if (!(value is bool))
- {
- return "";
- }
- if (!(bool)value)
- {
- return string.Format("MOSTRAR {0}", parameter);
- }
- return string.Format("OCULTAR {0}", parameter);
- }
-
- public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
- {
- return null;
- }
-
- public override object ProvideValue(IServiceProvider serviceProvider)
- {
- return this;
- }
- }
-}
\ No newline at end of file |