| | |
| | | { |
| | | ~View() |
| | | { |
| | | #if DEBUG |
| | | Shared.HDLUtils.WriteLine("=====" + GetType() + " " + Name); |
| | | #endif |
| | | if (this is ViewGroup) |
| | | { |
| | | var viewGroup = this as ViewGroup; |
| | |
| | | Parent.Remove(this); |
| | | } |
| | | |
| | | |
| | | public float AnimateSpeed = 0.6f; |
| | | |
| | | Animate animate = Animate.None; |
| | | /// <summary> |
| | |
| | | case Animate.DownToUp: |
| | | frame.Y += RealView.Frame.Height; |
| | | RealView.Frame = frame; |
| | | UIView.AnimateNotify(0.6f, 0.001f, UIViewAnimationOptions.CurveLinear, () => |
| | | UIView.AnimateNotify(AnimateSpeed, 0.001f, UIViewAnimationOptions.CurveLinear, () => |
| | | { |
| | | RealView.Frame = frameBefore; |
| | | }, null); |
| | |
| | | case Animate.UpToDown: |
| | | frame.Y -= RealView.Frame.Height; |
| | | RealView.Frame = frame; |
| | | UIView.AnimateNotify(0.6f, 0.001f, UIViewAnimationOptions.CurveLinear, () => |
| | | UIView.AnimateNotify(AnimateSpeed, 0.001f, UIViewAnimationOptions.CurveLinear, () => |
| | | { |
| | | RealView.Frame = frameBefore; |
| | | }, null); |