| 12345678910111213141516171819202122232425262728293031323334 | using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Windows.Data;namespace Venus_Themes.Converters{    public class ToBoolMultiValueConverter8 : IMultiValueConverter    {        public object Convert(object[] values, Type targetType, object parameter, System.Globalization.CultureInfo culture)        {            if (((bool)values[0] == true) &&( (bool)values[1] == true))            {                return true;            }            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();        }    }}
 |