首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 媒体动画 > CAD教程 >

blend4中打造好动画移植VS2010出错

2013-03-01 
blend4中制作好动画移植VS2010出错我在blend4中制作号动画后移到VS2010就会有错误,就是下面这段代码,不加

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中有没有设置,如果没有设置渐变色的话,会出问题
在哪里设置这个,belnd怎么不要设置,麻烦说一下,


在哪里设置?你这个Chrome是个什么控件,在VS中设置下他的背景色,看你动画的代码,应该是做的背景渐变色的动画啊,你在blend中怎么设置的,在VS中就怎么设置啊

热点排行