【发布时间】:2013-06-28 06:19:39
【问题描述】:
我写了这段代码,遇到了异常:
背景属性不指向路径'(0).(1)'中的依赖对象
我在论坛的其他帖子中看到了这个问题,但没有找到解决方案。
<WrapPanel.Style>
<Style>
<Style.Triggers>
<Trigger Property "WrapPanel.Visibility" Value="Visible">
<Trigger.EnterActions>
<BeginStoryboard HandoffBehavior="Compose">
<Storyboard RepeatBehavior="Forever" AutoReverse="True">
<ColorAnimation
Storyboard.TargetProperty="(WrapPanel.Background).(SolidColorBrush.Color)"
Duration="00:00:01" To="Red"/>
</Storyboard>
</BeginStoryboard>
</Trigger.EnterActions>
</Trigger>
</Style.Triggers>
</Style>
</WrapPanel.Style>
有什么帮助吗?
【问题讨论】:
标签: c# wpf animation triggers styles