async void Logout(object sender, EventArgs e) { Button button = (Button)sender; ButtonLock(); ProfilePage page = (ProfilePage)App.Mainpage.Children[2]; await button.ScaleTo(0.8f, 80, Easing.BounceOut); await button.ScaleTo(1, 80, Easing.BounceOut); page.Logout(); ButtonLock(); }
async void Logout(object sender, EventArgs e) { Button button = (Button)sender; ButtonLock(); ProfilePage page = (ProfilePage)App.Mainpage.Children[2]; page.Logout(); await button.RotateTo(-5, 80, Easing.BounceOut); await button.RotateTo(5, 120, Easing.BounceOut); await button.RotateTo(0, 80, Easing.BounceOut); ButtonLock(); UserSettingsB.IsEnabled = false; LogoutB.IsEnabled = false; }