bool _orientationUpdated() { XPageOrientation _orientation = Orientation; if (UIDevice.CurrentDevice.Orientation == UIDeviceOrientation.LandscapeLeft || UIDevice.CurrentDevice.Orientation == UIDeviceOrientation.LandscapeRight) { _orientation = XPageOrientation.Landscape; } if (UIDevice.CurrentDevice.Orientation == UIDeviceOrientation.Portrait || UIDevice.CurrentDevice.Orientation == UIDeviceOrientation.PortraitUpsideDown) { _orientation = XPageOrientation.Portrait; } UpsideDown = UIDevice.CurrentDevice.Orientation == UIDeviceOrientation.LandscapeRight || UIDevice.CurrentDevice.Orientation == UIDeviceOrientation.PortraitUpsideDown; //if (_orientation != Orientation) // { Orientation = _orientation; return(true); // } //return false; }
public void SetCurrentOrientation(XPageOrientation orientation, bool isUpsideDown) { _deviceOrientation = orientation; _deviceIsUpsideDown = isUpsideDown; IsUpsideDown = isUpsideDown; CurrentPageOrientation = orientation; OnOrientationChanged(); }
public PageOrientationChangedMessage(XPageOrientation orientation, bool isUpsideDown) { _orientation = orientation; _isUpsideDown = isUpsideDown; }