Пример #1
0
 public static bool IsFlat(DeviceOrientation deviceOrientation)
 {
     return(DeviceOrientationHelper.GetDeviceOrientationInfo(deviceOrientation).NormalGravityVector.Z != 0.0);
 }
Пример #2
0
 public static bool IsLandscape(DeviceOrientation deviceOrientation)
 {
     return(DeviceOrientationHelper.GetDeviceOrientationInfo(deviceOrientation).NormalGravityVector.X != 0.0);
 }