Animate a linear brush using a data trigger
问题 I am trying to animate a linear brush on a border using a data trigger but have come accross a problem where I cannot use the TargetName My code is as follows, can anyone suggest a way to resolve this? <Border Grid.Row="2" BorderThickness="10" Height="100" Width="100" > <Border.BorderBrush> <LinearGradientBrush> <GradientStop Color="Yellow" Offset="0.0" /> <GradientStop x:Name="gradient" Color="Orange" Offset="0.5" /> <GradientStop Color="Yellow" Offset="1.0" /> </LinearGradientBrush> <