I have a slider and can fill in the slide length .
For example 300 or 400 .
In the code the length 550 what to fill in for the whole screen ?
var mainDisplayInfo = DeviceDisplay.MainDisplayInfo;
if (MyDraggableView.Height == 0)
{
Action<double> callback = input => MyDraggableView.HeightRequest = input;
double startHeight = 0;
double endHeight = mainDisplayInfo.Height / 4;
uint rate = 32;
uint length = 550;
Easing easing = Easing.CubicOut;
MyDraggableView.Animate("anim", callback, startHeight, endHeight, rate, length, easing);
}
else
{
Action<double> callback = input => MyDraggableView.HeightRequest = input;
double startHeight = mainDisplayInfo.Height / 4;
double endiendHeight = 0;
uint rate = 32;
uint length = 550;
Easing easing = Easing.SinOut;
MyDraggableView.Animate("anim", callback, startHeight, endiendHeight, rate, length, easing);
}