示例#1
0
        public void AnimateShow()
        {
#if ANIMATE_DOCKING
            animating             = true;
            scrollable.ScrollMode = true;
            scrollable.SetSize(position, targetSize);

            switch (position)
            {
            case PositionType.Left:
                Width = 0;
                break;

            case PositionType.Right:
                targetPos = X = X + Width;
                Width     = 0;
                break;

            case PositionType.Top:
                Height = 0;
                break;

            case PositionType.Bottom:
                targetPos = Y = Y + Height;
                Height    = 0;
                break;
            }
            Show();
            GLib.Timeout.Add(10, RunAnimateShow);
#else
            Show();
#endif
        }