예제 #1
0
        void ChangeFrameSize(bool scale)
        {
            var frame = View.Frame;

            if (scale)
            {
                frame.Height -= _scrollAmount;
            }
            else
            {
                frame.Height += _scrollAmount;
            }
            page.Content.HorizontalOptions = LayoutOptions.StartAndExpand;
            page.Layout(new Rectangle(0, 0, frame.Width, frame.Height));
            page.ForceLayout();
            View.Frame = frame;
        }
예제 #2
0
        void ChangeFrameSize(bool scale)
        {
            var frame = View.Frame;

            if (scale)
            {
                previousValue = frame.Height;
                frame.Height -= _scrollAmount;
            }
            else
            {
                frame.Height = previousValue;
            }
            //frame.Height += _scrollAmount;
            page.Content.HorizontalOptions = LayoutOptions.StartAndExpand;
            page.Layout(new Rectangle(0, 0, frame.Width, frame.Height));
            page.ForceLayout();
            View.Frame = frame;
            //page.OnMessagesChanged();
        }