Is there a way for the UserControl WPF class to be a class with a template type? eg.
public partial class MyControl : UserControl
it should be:
public partial class MyControl<MyData> : UserControl
since I always get compilation errors MyControl , which has no reference to InitializeComponents , which is in the automatically generated part of the class. The problem is that I cannot say in the xaml part of the class that usercontrol is of type MyControl<MyData> . I even tried MyControl<MyData> ...
c # class templates wpf user-controls
Ephraim
source share