标签: wpf data-binding binding
有人可以将其转换为C#代码:
<ContentControl Name="test" ContentTemplate="{StaticResource myA}"/>
答案 0 :(得分:3)
test.ContentTemplate = (DataTemplate) FindResource("myA");