wpf,记录一下颜色设置的2中方法,,,

<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)" Storyboard.TargetName="path">
<EasingColorKeyFrame KeyTime="0" Value="#FF8CC9F8"/>
</ColorAnimationUsingKeyFrames>

<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill)" Storyboard.TargetName="path">
<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource FF4F9CE3Colors}"/>
</ObjectAnimationUsingKeyFrames>

posted @ 2015-07-02 18:10  莫欺  阅读(330)  评论(0编辑  收藏  举报