void ReleaseDesignerOutlets() { if (FacebookButton != null) { FacebookButton.Dispose(); FacebookButton = null; } if (GithubButton != null) { GithubButton.Dispose(); GithubButton = null; } if (GoogleButton != null) { GoogleButton.Dispose(); GoogleButton = null; } if (LinkedinButton != null) { LinkedinButton.Dispose(); LinkedinButton = null; } if (PinterestButton != null) { PinterestButton.Dispose(); PinterestButton = null; } if (TwitterButton != null) { TwitterButton.Dispose(); TwitterButton = null; } if (WatsappButton != null) { WatsappButton.Dispose(); WatsappButton = null; } if (Image != null) { Image.Dispose(); Image = null; } if (Label != null) { Label.Dispose(); Label = null; } }
private async void StartAnimation() { // Waiting for the page to load await Task.Delay(200).ConfigureAwait(false); await Task.WhenAll( DescriptionPanel.TranslateTo(0, -15, 1000, Easing.CubicOut), DescriptionPanel.FadeTo(100, 1000, Easing.CubicIn), GithubButton.FadeTo(100, 1000, Easing.CubicIn) ).ConfigureAwait(false); }