/// <summary> /// Method to hide the bottom slide bar /// </summary> private void HideBottomSlideBar() { Action <double> callback = input => AddItemForm.HeightRequest = input; double startHeight = 120; double endiendHeight = 0; uint rate = 32; uint length = 500; Easing easing = Easing.SinOut; AddItemForm.Animate("anim", callback, startHeight, endiendHeight, rate, length, easing); }
private void Open_Form_Todolist(object sender, EventArgs e) { // Get screen info var mainDisplayInfo = DeviceDisplay.MainDisplayInfo; // Annimation Action <double> callback = input => AddTodolistForm.HeightRequest = input; double startHeight = 0; double endHeight = 120;//mainDisplayInfo.Height / 20; uint rate = 32; uint length = 500; Easing easing = Easing.SinOut; AddItemForm.Animate("anim", callback, startHeight, endHeight, rate, length, easing); // Close the other side bar if this one is opened if (AddItemForm.Height > 0) { HideBottomSlideBar(); } }