async void HideBtn_Clicked(System.Object sender, System.EventArgs e) { await SettingsButton.FadeTo(0, 200, Easing.Linear); await HomeButton.FadeTo(0, 200, Easing.Linear); await ExploreButton.FadeTo(0, 200, Easing.Linear); await HideButton.TranslateTo(-deviceWidth - 10, 0, 1000, Easing.SpringOut); await ExpandButton.FadeTo(100, 500, Easing.Linear); HideButton.Opacity = 0; await HideButton.TranslateTo(0, 0, 0); }
async void RevealBtn_Clicked(System.Object s, System.EventArgs e) { await ExpandButton.TranslateTo(deviceWidth + 10, 0, 1000, Easing.SpringOut); await Task.WhenAll( ExploreButton.FadeTo(100, 1000, Easing.CubicIn), HomeButton.FadeTo(100, 1000, Easing.CubicIn), SettingsButton.FadeTo(100, 1000, Easing.CubicIn) ); await HideButton.FadeTo(100, 500, Easing.Linear); ExpandButton.Opacity = 0; await ExpandButton.TranslateTo(0, 0, 0); }
public void NavigateExplore() { ExploreButton.Click(); }