Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

LayoutTo is broken (forms v1.1.1)

$
0
0

I have the following issue with LayoutTo

  1. I call LayoutTo to animate a AbsoluteLayout view (this works fine)
    ... the AbsoluteLayout view has number of subviews; some are hidden (Image & Label)
    ... i have a sequence where I hide a visible image & label and unhide a hidden image & label
  2. after doing the hide / unhide - the AbsoluteLayout is reset to it's original position

This was broken in the previous .forms version as well

LayoutTo code

.
    Rectangle oldBounds = vwCommand.Bounds;
    Rectangle newBounds = new Rectangle (new Point (oldBounds.X, oldBounds.Y - (130 * V.Scale)), oldBounds.Size);
    vwCommand.LayoutTo (newBounds, 800, Easing.SinOut);

Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>