Example #1
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/GapExample;component/MainPage.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.PGView = ((WP7CordovaClassLib.CordovaView)(this.FindName("PGView")));
 }
        public BackButtonHandler(PhoneApplicationPage page, CordovaView phoneGapView)
        {
            // subscribe to the hardware back-button
            page.BackKeyPress += Page_BackKeyPress;

            _browser = phoneGapView.Browser;

            // handle navigation events
            _browser.Navigated += Browser_Navigated;
        }
    public BackButtonHandler(PhoneApplicationPage page, WP7CordovaClassLib.CordovaView phoneGapView)
    {
        // subscribe to the hardware back-button
        page.BackKeyPress += Page_BackKeyPress;

        // handle navigation events
        phoneGapView.Browser.Navigated += Browser_Navigated;

        _phoneGapView = phoneGapView;
    }
Example #4
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Sunshine%20Deals;component/MainPage.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.PGView = ((WP7CordovaClassLib.CordovaView)(this.FindName("PGView")));
     this.SplashImage = ((System.Windows.Controls.Image)(this.FindName("SplashImage")));
     this.SplashProjector = ((System.Windows.Media.PlaneProjection)(this.FindName("SplashProjector")));
 }
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/CordovaStarter5;component/MainPage.xaml", System.UriKind.Relative));
     this.LayoutRoot      = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.PGView          = ((WP7CordovaClassLib.CordovaView)(this.FindName("PGView")));
     this.SplashImage     = ((System.Windows.Controls.Image)(this.FindName("SplashImage")));
     this.SplashProjector = ((System.Windows.Media.PlaneProjection)(this.FindName("SplashProjector")));
 }