0
我有一個文本塊,應該改變其文本(它必須顯示文本幾秒鐘,然後消失)。不能分配RoutedEvent Binding.TargetUpdated
<TextBlock Text="{Binding Path=OperationMessage, NotifyOnValidationError=True}" x:Name="label_OperationMessage" Visibility="Collapsed" HorizontalAlignment="Right" Margin="3,3,3,3" >
<TextBlock.Triggers>
<EventTrigger RoutedEvent="Binding.TargetUpdated">
<BeginStoryboard>
<Storyboard>
<DoubleAnimation Storyboard.TargetProperty="Opacity" Duration="0:0:0" To="1.0" />
<DoubleAnimation Storyboard.TargetProperty="Opacity" Duration="0:0:2" From="1.0" To="0.0" BeginTime="0:0:5" />
</Storyboard>
</BeginStoryboard>
</EventTrigger>
</TextBlock.Triggers>
</TextBlock>
當我啓動我的應用程序,我得到錯誤:
Failed to assign to property 'System.Windows.EventTrigger.RoutedEvent'.
上線
<EventTrigger RoutedEvent="Binding.TargetUpdated">
什麼是錯的代碼?