31 lines
852 B
C#
31 lines
852 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Globalization;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Data;
|
|
|
|
namespace AuroraUIComponent.UIConverter
|
|
{
|
|
public class MultiBindingConverter : IMultiValueConverter
|
|
{
|
|
private object[] validObject = null;
|
|
public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
|
|
{
|
|
// values[0]은 ItemsSource, values[1]은 SelectedItem입니다.
|
|
if (values.Any(x => x != null)) {
|
|
validObject = values;
|
|
}
|
|
return values.Clone();
|
|
}
|
|
|
|
public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
|
|
{
|
|
throw new NotImplementedException();
|
|
|
|
}
|
|
}
|
|
|
|
}
|