public static float GetKeyboardHeight(this UIDevice device)
{
var orientation = device.Orientation;
var landscape = orientation == UIDeviceOrientation.LandscapeLeft || orientation == UIDeviceOrientation.LandscapeRight;
if (device.IsPad())
{
if (landscape)
return 352;
return 264;
}
if (landscape)
return 140;
return 216;
}