first edit

This commit is contained in:
Курнат Андрей
2026-01-31 16:11:36 +03:00
commit f0e11d6379
148 changed files with 6986 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
using System;
using System.Collections;
using System.Windows.Data;
namespace XLIMS.MVVM.Converters
{
[ValueConversion(typeof(object),typeof(CompositeCollection))]
public class CompositeCollectionConverter : IMultiValueConverter
{
public object Convert(object[] values
, Type targetType
, object parameter
, System.Globalization.CultureInfo culture)
{
var res = new CompositeCollection();
foreach (var item in values)
if (item is IEnumerable)
res.Add(new CollectionContainer()
{
Collection = item as IEnumerable
});
else res.Add(item);
return res;
}
public object[] ConvertBack(object value
, Type[] targetTypes
, object parameter
, System.Globalization.CultureInfo culture)
{
throw new NotImplementedException();
}
}
}