Exemplo n.º 1
0
        //如果鼠标双击
        private void BaseCheckControl_OnMouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            //获取Check的空姐
            ColorCheckControl _colorCheckControl = sender as ColorCheckControl;

            //让这个Check的按钮动画,恢复到正常的大小
            AnimationTool.PlayButtonAnimation(false, _colorCheckControl.PressAnimationSize, _colorCheckControl.BaseButtonScaleTransform);//获取"抬起动画",并播放动画

            //触发事件
            this.OnMouseDoubleClickCheck();
        }
 //当鼠标在[按钮]上抬起的时候,触发此方法
 private void Button_OnPreviewMouseUp(object sender, MouseButtonEventArgs e)
 {
     /* 获取"抬起动画",并播放动画 */
     AnimationTool.PlayButtonAnimation(false, this.PressAnimationSize, this.BaseButtonScaleTransform);
 }