|
protected override void OnSizeAllocated(double width, double height)
{
base.OnSizeAllocated(width, height);
if (width > height)
{
if (Device.RuntimePlatform == Device.Android)
{
range.Point = new Point(240, 90);
}
else if(Device.RuntimePlatform==Device.iOS)
{
range.Point = new Point(240, 90);
}
else
{
range.Point = new Point(300, 350);
}
}
else
{
if (Device.RuntimePlatform == Device.Android)
{
range.Point = new Point(120, 200);
}
else if (Device.RuntimePlatform == Device.iOS)
{
range.Point = new Point(300, 380);
}
else
{
range.Point = new Point(300, 350);
}
}
} |