void UpdateFooterPosition()
        {
            if (_footer == null)
            {
                return;
            }

            var point = new Point();

            if (IsHorizontal)
            {
                point.X += (GetScrollCanvasSize().Width - _footerSize.Width);
            }
            else
            {
                point.Y += (GetScrollCanvasSize().Height - _footerSize.Height);
            }

            var bound = new Rect(point, _footerSize);

            if (IsHorizontal)
            {
                bound.Height = _allocatedSize.Height;
            }
            else
            {
                bound.Width = _allocatedSize.Width;
            }
            _footer.UpdateBounds(bound);
        }
 public static void UpdatePosition(this View view, Point position)
 {
     view.Position = position.ToNative();
 }
示例#3
0
 public static void UpdatePosition(this EvasObject view, Point position)
 {
     view.Move((int)position.X, (int)position.Y);
 }