读书人

WPF在后台CS文件中调用前台xaml中的St

发布时间: 2012-05-01 12:48:58 作者: rapoo

WPF在后台CS文件中调用前台xaml中的StaticResource
比如现在有个<ControlTemplate x:Key="DesignerItemTemplate" />
前台如此:<ContentControl Name="contentControl1" Template="{StaticResource DesignerItemTemplate}"/>
后台该如何实现这句话?

[解决办法]
xx.Template = ;

读书人网 >C#

热点推荐