2024-09-22 11:05:41 +08:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
using System.Windows.Data;
|
|
|
|
|
|
|
2025-02-10 20:53:40 +08:00
|
|
|
|
namespace WPFluent.Converters;
|
2024-09-22 11:05:41 +08:00
|
|
|
|
|
|
|
|
|
|
internal class BooleanAllConverter : IMultiValueConverter
|
|
|
|
|
|
{
|
2025-02-10 20:53:40 +08:00
|
|
|
|
public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture) => values.OfType<bool>(
|
|
|
|
|
|
)
|
|
|
|
|
|
.All(b => b);
|
2024-09-22 11:05:41 +08:00
|
|
|
|
|
2025-02-10 20:53:40 +08:00
|
|
|
|
public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture) => throw new NotImplementedException(
|
|
|
|
|
|
);
|
2024-09-22 11:05:41 +08:00
|
|
|
|
}
|