首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

WPF在后台CS文件中调用前台xaml中的StaticResource解决办法

2012-05-01 
WPF在后台CS文件中调用前台xaml中的StaticResource比如现在有个ControlTemplate x:KeyDesignerItemTemp

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

[解决办法]
xx.Template = ;

热点排行