| 12345678910111213141516171819202122232425262728293031323334353637 | using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Windows;using System.Windows.Data;using Venus_Core;namespace Venus_MainPages.Converters{    public class AnyMultiValueConverter : IMultiValueConverter    {        public object Convert(object[] values, Type targetType, object parameter, System.Globalization.CultureInfo culture)        {            if (values == null) return false;            foreach (var item in values)            {                if (item == DependencyProperty.UnsetValue)                {                    continue;                }                if ( (bool)item == true)                {                    return true;                }            }            return false;        }        public object[] ConvertBack(object value, Type[] targetTypes, object parameter, System.Globalization.CultureInfo culture)        {            return null;        }    }}
 |