BlinkIDDemo.MainPage.OnOrientationChanged C# (CSharp) Method

OnOrientationChanged() protected method

Handles orientation change event by animating buttons and rectangle and forwarding the event to RecognizerControl
protected OnOrientationChanged ( OrientationChangedEventArgs e ) : void
e OrientationChangedEventArgs orientation change event info
return void
        protected override void OnOrientationChanged(OrientationChangedEventArgs e)
        {
            // call default behaviour
            base.OnOrientationChanged(e);
            // animate "Cancel" and "Light" buttons
            AnimateButtons(e);
            // animate rectangle
            mRectangle.AnimateOrientationChange(e);
            // orientation change events MUST be forwarded to RecognizerControl
            mRecognizer.OnOrientationChanged(e);
        }