blend4中制作好动画移植VS2010出错
我在blend4中制作号动画后移到VS2010就会有错误,就是下面这段代码,不加就没问题,但是在Blend4中没问题
<VisualState x:Name="Normal">
<Storyboard>
<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="Chrome">
<EasingColorKeyFrame KeyTime="0" Value="#FF1B60A1" />
</ColorAnimationUsingKeyFrames>
<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="Chrome">
<EasingColorKeyFrame KeyTime="0" Value="#FF2683DA" />
</ColorAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Offset)" Storyboard.TargetName="Chrome">
<EasingDoubleKeyFrame KeyTime="0" Value="0.983" />
</DoubleAnimationUsingKeyFrames>
</Storyboard>
</VisualState>
不加storyboard里面就没问题,加了运行还是有效果的,但是报错WPF启动动画时提示如下错误:“[Unknown]”属性未指向路径“(0).(1)[0].(2)”中的 DependencyObject。 网上说的路径问题,我感觉不是,有人知道吗!
blend 2010 wpf
[解决办法]
在哪里设置?你这个Chrome是个什么控件,在VS中设置下他的背景色,看你动画的代码,应该是做的背景渐变色的动画啊,你在blend中怎么设置的,在VS中就怎么设置啊