<Style TargetType="{x:Type MyBtn}">
...
<Setter Property="Effect">
<Setter.value>
<DropshadowEffect BlurRadius="10" ShadowDepht="5" Direction="-45"/>
</Setter.Value>
</Setter>
...
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Mybtn}">
...
<ControlTemplate.Triggers>
<Trigger Property="IsPressed" Value="True">
<!-- Here I can change background and font colors properly,
but can't change the shadow of my buttons -->
</Trigger>
</ControlTemplate.Triggers>
</Setter.Value>
</Setter>
</Style>
有没有办法通过点击或按下事件来改变DropshadowEffect? 谢谢!