1234567891011121314151617181920212223242526272829303132333435 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows;
- using System.Windows.Data;
- namespace CyberX8_MainPages.Converters
- {
- public class AnyMultiValueConverter : IMultiValueConverter
- {
- public object Convert(object[] values, Type targetType, object parameter, System.Globalization.CultureInfo culture)
- {
- 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;
- }
- }
- }
|