You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
666 B
23 lines
666 B
using System;
|
|
using System.Globalization;
|
|
using System.Windows.Data;
|
|
|
|
namespace MultiTerm.Wpf.ValueConverters;
|
|
|
|
/// <summary>
|
|
/// Reverses <see cref="IValueConverter"/>s.
|
|
/// </summary>
|
|
public class InverterConverter : IValueConverter
|
|
{
|
|
public IValueConverter? Converter { get; set; }
|
|
|
|
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
|
|
{
|
|
return Converter.ConvertBack(value, targetType, parameter, culture);
|
|
}
|
|
|
|
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
|
|
{
|
|
return Converter.Convert(value, targetType, parameter, culture);
|
|
}
|
|
}
|
|
|