private void TapGestureRecognizer_Tapped(object sender, EventArgs e) { var mainDisplayInfo = DeviceDisplay.MainDisplayInfo; Action <double> callback = input => BottomSlider.HeightRequest = input; double startHeight = mainDisplayInfo.Height / 3; double endiendHeight = 0; uint rate = 32; uint length = 500; Easing easing = Easing.SinOut; BottomSlider.Animate("anim", callback, startHeight, endiendHeight, rate, length, easing); DetailsButton.IsVisible = true; }
private void Button_Clicked(object sender, EventArgs e) { var mainDisplayInfo = DeviceDisplay.MainDisplayInfo; Action <double> callback = input => BottomSlider.HeightRequest = input; double startHeight = 0; double endHeight = mainDisplayInfo.Height / 3; uint rate = 32; uint length = 500; Easing easing = Easing.CubicOut; BottomSlider.Animate("anim", callback, startHeight, endHeight, rate, length, easing); DetailsButton.IsVisible = false; }