I have declared a DataTemplate in Window.Resources; I don’t intend to use it inside an ItemsControl, but rather just use it as a user control. How do I put it on a form?
I have declared a DataTemplate in Window.Resources; I don’t intend to use it inside
Share
You can put a ContentControl into your user control, and set its
ContentTemplateto yourDataTemplate.