【发布时间】:2015-02-12 09:32:49
【问题描述】:
我如何在 wpf 中动态创建样式设置器数据属性(样式不在主窗口 xaml 中,它是单独的 xaml)
<Style x:Key="Room3HZ"
TargetType="Path"
BasedOn="{StaticResource DrawingItemStyle}">
<Setter Property="Data"
Value="M 17,70 L 550,70 551,331 17,331 17,70 195,70 195,330 367,330 367,69"/>
</Style>
此代码在 DrawingStencils.xaml 页面中 mainwindow.xmal.cs页面如何动态设置数据?
【问题讨论】:
标签: c# wpf dynamic styles setter