当特定文本框的值更改时,如何在边框上应用情节提要动画。下面是我的xaml代码。
<Border x:Name="ContentBorder">
<StackPanel>
<TextBox Text="{Binding LevelView_ID, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnTargetUpdated=True}">
<TextBox.Style>
<Style TargetType="TextBox">
<Style.Triggers>
<EventTrigger RoutedEvent="Binding.TargetUpdated">
<BeginStoryboard>
<Storyboard AutoReverse="True">
<DoubleAnimation
Storyboard.TargetName="ContentBorder"
Storyboard.TargetProperty="Opacity"
To=".1"
Duration="0:0:.5" />
</Storyboard>
</BeginStoryboard>
</EventTrigger>
</Style.Triggers>
</Style>
</TextBox.Style>
</TextBox>
<TextBox Text="{Binding LevelView_Title}" />
</StackPanel>
</Border>
注意:这在Storyboard.TargetName =“ ContentBorder”
上显示错误