コード例 #1
0
        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.YebobBrowser, page);
                }
            }
        }
コード例 #2
0
ファイル: YBWebView.xaml.cs プロジェクト: lite/yebob_wp
        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.YebobBrowser, page);

                }
            }
        }