0
我想改变一个烧毛单元格的背景在数据网格当源被更新。我使用MVVM,C#和WPF:动画背景更新
这里是我不工作的代码构成的XAML文件(仅DATACELL本身):
<DataGridTextColumn x:Name="test" Header="Errors" IsReadOnly="True" Binding="{Binding ErrorsReceived}">
<DataGridTextColumn.CellStyle>
<EventTrigger RoutedEvent="Binding.SourceUpdated">
<BeginStoryboard>
<Storyboard>
<DoubleAnimation Storyboard.TargetName="test"
Storyboard.TargetProperty="Background"
From="Red"
To="White"
Duration="0:0:0.2"/>
</Storyboard>
</BeginStoryboard>
</EventTrigger>
</DataGridTextColumn.CellStyle>
</DataGridTextColumn>
我怎样才能使这项工作?