wabbajack/Wabbajack/Converters/EqualsToBoolConverter.cs

20 lines
486 B
C#
Raw Normal View History

2019-11-10 06:39:40 +00:00
using System;
using System.Globalization;
using System.Windows.Data;
namespace Wabbajack
{
public class EqualsToBoolConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
2019-11-21 15:04:33 +00:00
return Equals(value, parameter);
2019-11-10 06:39:40 +00:00
}
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
return parameter;
}
}
}