Ejemplo n.º 1
0
        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;
        }
Ejemplo n.º 2
0
        public void SetCurrentOrientation(XPageOrientation orientation, bool isUpsideDown)
        {
            _deviceOrientation = orientation;
            _deviceIsUpsideDown = isUpsideDown;

            IsUpsideDown = isUpsideDown;
            CurrentPageOrientation = orientation;
            OnOrientationChanged();
        }
Ejemplo n.º 3
0
        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;
 }
 public PageOrientationChangedMessage(XPageOrientation orientation, bool isUpsideDown)
 {
     _orientation  = orientation;
     _isUpsideDown = isUpsideDown;
 }