I’d like to create a custom WPF control using generics:
public class MyGenericTypeControl<T> : ItemsControl
{
// ...
}
Is this possible to do? In my initial experimentation, I get design-time/compile-time XAML errors as soon as I try to add this control somewhere. This isn’t surprising, as construction of my custom control requires additional information that XAML does not provide.
Any ideas?
There is limited support using
x:TypeArguments