private async void DeleteButton_AnimationOnIsVisible(object sender, System.ComponentModel.PropertyChangedEventArgs e) { if (e.PropertyName == "IsVisible" && DeleteButton.IsVisible) { await DeleteButton.Animate(new ShakeAnimation()); } }