using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Data; namespace CyberX8_Themes.Converters { public class ToBoolMultiValueConverter5 : IMultiValueConverter { public object Convert(object[] values, Type targetType, object parameter, System.Globalization.CultureInfo culture) { if ((bool)values[0] == false && (bool)values[1] == false) { return false; } for (int i = 2; i < values.Length; i++) { if ((bool)values[i] == true) { return true; } } return false; } public object[] ConvertBack(object value, Type[] targetTypes, object parameter, System.Globalization.CultureInfo culture) { throw new NotImplementedException(); } } }