wpf 如何动态设置控件样式
<Style TargetType="{x:Type s:DesignerItem}" x:Key="Node"> <Setter Property="MinWidth" Value="25"/> <Setter Property="MinHeight" Value="25"/> <Setter Property="SnapsToDevicePixels" Value="True"/> </Style> <Style TargetType="{x:Type s:DesignerItem}" x:Key="Button"> <Setter Property="MinWidth" Value="25"/> <Setter Property="MinHeight" Value="25"/> <Setter Property="SnapsToDevicePixels" Value="True"/> </Style>