示例#1
0
 //当鼠标离开[Staff]按钮或者按钮时
 private void StaffButtonControl_MouseLeave(object sender, MouseEventArgs e)
 {
     //关闭Staff面板
     this.StaffGrid.Visibility = Visibility.Collapsed;
     AnimationTool.PlayGridOpacityAnimation(this.StaffGrid, null, 0, 0.25f);
 }
 //当鼠标在[按钮]上抬起的时候,触发此方法
 private void Button_OnPreviewMouseUp(object sender, MouseButtonEventArgs e)
 {
     /* 获取"抬起动画",并播放动画 */
     AnimationTool.PlayButtonAnimation(false, this.PressAnimationSize, this.BaseButtonScaleTransform);
 }
示例#3
0
 //当鼠标进入[Staff]按钮或者按钮时
 private void StaffButtonControl_MouseEnter(object sender, MouseEventArgs e)
 {
     //打开Staff面板
     this.StaffGrid.Visibility = Visibility.Visible;
     AnimationTool.PlayGridOpacityAnimation(this.StaffGrid, null, 1, 0.25f);
 }