using System; using System.Globalization; using System.Windows.Data; namespace Dominion.NET_WPF.Converters { public class CutoffConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { return ((int)value) > Cutoff; } public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) { throw new NotImplementedException(); } public int Cutoff { get; set; } } }