I have a simple Xamarin Forms app. I am using Prism Forms. I would like to animate Label with basic fade animation in View, when its old value and new value is not equal. What is the best approach for animating a object in View? Thank you in advance.
MainPageViewModel.cs
public class MainPageViewModel : BindableBase
{
public HomePageViewModel()
{
Title = "First";
ChangeTitle();
}
private async void ChangeTitle()
{
await Task.Delay(5000);
if(Title == "First")
{
Title = "Second";
}
else
{
Title = "First";
}
ChangeTitle();
}
private string title;
public string Title
{
get { return title; }
set { SetProperty(ref title, value); }
}
}
Hello,
I have a simple Xamarin Forms app. I am using Prism Forms. I would like to animate Label with basic fade animation in View, when its old value and new value is not equal. What is the best approach for animating a object in View? Thank you in advance.
MainPageViewModel.cs
MainPage.xml