Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

OnAppearing() not doing the FadeTo

$
0
0

I have a simple label which I would like to fade in. I have a StackLayout with 2 labels, I would like one to fly into view.

This is the XAML:

And I added this to the code:

Option1:(the text just waits and appears all of a sudden)
protected override void OnAppearing()
{
base.OnAppearing();
animeMe();
}

async void animeMe()
{
  await FlyText.FadeTo(1, 7000, Easing.Linear);
}

Option2:(the text just waits and appears all of a sudden)
protected override void OnAppearing()
{
base.OnAppearing();
FlyText.FadeTo(1, 7000, Easing.Linear);
}

Is this a visual studio bug? Xamarin is not working all that well for me. I have the community Edition as I am just starting. The only emulator that works is an Android_Accelerated_X86_Nougat.


Viewing all articles
Browse latest Browse all 204402

Trending Articles



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