wpf中 后台如何动态给控件的style赋值Style TargetType{x:Type Button} x:KeyMyButton...........
wpf中 后台如何动态给控件的style赋值
<Style TargetType="{x:Type Button}" x:Key="MyButton">
......................
</Style>
样式如上,且样式资源已加载到程序中了,现在控件是后台动态生成的,那我怎么把控件的style设置成上面的样式呢
wpf中 后台如何动态给控件的style赋值
<Style TargetType="{x:Type Button}" x:Key="MyButton">
......................
</Style>
样式如上,且样式资源已加载到程序中了,现在控件是后台动态生成的,那我怎么把控件的style设置成上面的样式呢