protected override object ConvertValue(object newValue) { List <ItemType> selectedItems = new List <ItemType>(); var vals = newValue.ToString().Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries); selectedItems.AddRange(Items.Where(i => vals.Any(v => v == GetItemKey(i)))); return(vals.ToList().Select(value => (ValueType)SemDataSelectControlHelper <ItemType, ValueType> .ConvertValue(value, Items, ItemKey, ValueSelector)).ToList()); }
protected ItemType GetItemFromValue(ValueType value) => SemDataSelectControlHelper <ItemType, ValueType> .GetItemFromValue(value, Items, ValueSelector);
protected override string GetItemKey(ItemType item) => SemDataSelectControlHelper <ItemType, ValueType> .GetItemKey(item, Items, ItemKey);
protected override object ConvertValue(object newValue) => SemDataSelectControlHelper <ItemType, ValueType> .ConvertValue(newValue, Items, ItemKey, ValueSelector);