WPCordovaClassLib.CordovaView.AttachHardwareButtonHandlers C# (CSharp) Method

AttachHardwareButtonHandlers() protected method

protected AttachHardwareButtonHandlers ( ) : void
return void
        void AttachHardwareButtonHandlers()
        {
            PhoneApplicationFrame frame = Application.Current.RootVisual as PhoneApplicationFrame;
            if (frame != null)
            {
                PhoneApplicationPage page = frame.Content as PhoneApplicationPage;

                if (page != null)
                {
                    page.BackKeyPress += new EventHandler<CancelEventArgs>(page_BackKeyPress);

                    this.orientationHelper = new OrientationHelper(this.CordovaBrowser, page);

                }
            }
        }