1
0
mirror of https://github.com/DarthAffe/RGBSyncPlus synced 2025-12-13 01:18:30 +00:00
RGBSyncPlus/RGBSync+/Converter/EqualsToBoolConverter.cs

19 lines
547 B
C#

using System;
using System.Globalization;
using System.Windows.Data;
namespace RGBSyncPlus.Converter
{
[ValueConversion(typeof(object), typeof(bool))]
public class EqualsToBoolConverter : IValueConverter
{
#region Methods
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) => Equals(value, parameter);
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) => throw new NotSupportedException();
#endregion
}
}