Hi,
I have a UserControl, in the Resources section I have code like
<Style TargetType="{x:Type Viewbox}">
<Style.Triggers>
<Trigger Property="Viewbox.IsMouseOver" Value="True">
<Setter Property="Viewbox.Effect" >
<Setter.Value>
<DropShadowEffect Color="DarkGray" Direction="45" BlurRadius="30"></DropShadowEffect>
</Setter.Value>
</Setter>
</Trigger>
</Style.Triggers>
</Style>
SO this works for the ViewBox that I have in this control,
but when I do
<Viewbox.Triggers>
<Trigger Property="Viewbox.IsMouseOver" Value="True">
<Setter Property="Viewbox.Effect" >
<Setter.Value>
<DropShadowEffect></DropShadowEffect>
</Setter.Value>
</Setter>
</Trigger>
</Viewbox.Triggers>
within the View Box I get errors....
Is there a way to add local triggers to the ViewBox without using a Style?