Exemplo n.º 1
0
 private void CloseTMMessageBox()
 {
     if (isShowAnimatedOK)
     {
         var _12 = Owner as AyWindowBase;
         if (_12 != null)
         {
             _12.ResetMaskColor();
         }
         if (CloseOverride.IsNotNull())
         {
             CloseOverride();
         }
         var bn = new AyAniZoomBounceOut(body, () =>
         {
             this.Close();
         });
         bn.AutoDestory = true;
         bn.Begin();
         //AyAniDouble _1 = new AyAniDouble(body);
         //_1.AniPropertyPath = new PropertyPath("(FrameworkElement.Effect).(DropShadowEffect.BlurRadius)");
         //_1.FromDouble = 12;
         //_1.ToDouble = 0;
         //_1.AniEasingMode = 2;
         //_1.AnimateSpeed = 200;
         //_1.AutoDestory = true;
         //_1.Begin();
     }
 }
        /// <summary>
        /// 关闭弹层
        /// </summary>
        private void CloseAyLayerTop()
        {
            if (_options.HasCloseAnimation)
            {
                var bn = new AyAniZoomBounceOut(body, () =>
                {
                    this.Visibility = Visibility.Collapsed;
                    this.Opacity    = 0;

                    Owner.Children.Remove(this);
                });
                bn.AutoDestory = true;
                bn.Begin();
            }
            else
            {
                this.Visibility = Visibility.Collapsed;
                this.Opacity    = 0;
                Owner.Children.Remove(this);
            }
        }