blend 录storyboard 怎么让 button的 前景 背景 互相交换,这个 storyboard该怎么录制? RRS feed


  • Hi ProjectDD,

    一般我们是通过ColorAnimation来指定背景色变化。 通常我们需要指定From和to 的值(这个值,你可以设置成你的button 的背景色等)。

       ColorAnimation animation;
                animation = new ColorAnimation();
                animation.From = Colors.Orange;
                animation.To = Colors.Gray;
                animation.Duration = new Duration(TimeSpan.FromSeconds(1));
                this.btnImgBrush.Background = new SolidColorBrush(Colors.Orange);
                this.btnImgBrush.Background.BeginAnimation(SolidColorBrush.ColorProperty, animation);

    >>blend 录storyboard 怎么让 button的 前景 背景 互相交换,这个 storyboard该怎么录制


    Expression Blend + SketchFlow:

    Best Regards,

    Yohann Lu

    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact

    2017年10月13日 5:21