23 lines
494 B
C#
23 lines
494 B
C#
using System;
|
|
using System.Globalization;
|
|
using System.Windows.Data;
|
|
|
|
namespace FSI.Lib.Wpf.Converters
|
|
{
|
|
|
|
public class InvertedBoolenConverter : IValueConverter
|
|
{
|
|
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
|
|
{
|
|
return !(bool)value;
|
|
|
|
}
|
|
|
|
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
|
|
{
|
|
return (bool)value;
|
|
}
|
|
}
|
|
|
|
}
|