You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered: