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

View animated with LayoutTo is disappearing after few seconds

$
0
0

Hi. I have a Custom SideMenu (subclass of ContentView) with the following methods.

public void Show()
{
            var rect = new Rectangle(0, 0, Width, Height);
            Device.BeginInvokeOnMainThread(async () =>
            {
                await this.LayoutTo(rect, 450);
            });
}

public void Hide()
{
            var rect = new Rectangle(Width, 0, Width, Height);
            Device.BeginInvokeOnMainThread(async () =>
            {
                await this.LayoutTo(rect, 450);
            });
}
  1. Windows Phone - Works fine. - OK.
  2. Android - when the transition ends, after 15-20 seconds the view disappears. Always. - NOT OK.
  3. iOS - disappeared only twice so far and could not reproduce it again - ACCEPTABLE.

Am I doing something wrong? Anyone with the same problem?


Viewing all articles
Browse latest Browse all 58056

Trending Articles



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