I turned an Horizontal ItemsControl to a Listbox so that I am able to select individual items but found that the selection was broken. Took some time to distill out the prob
Garyx
Something a bit simpler maybe ?
public class StructListItem where T : struct
{
public T Item { get; private set; }
public readonly Guid Id = Guid.NewGuid();
public StructListItem(T item)
{
Item = item;
}
public static IEnumerable>
GetStructList(IEnumerable originalList) where U : struct
{
return originalList.Select(i => new StructListItem(i));
}
}