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

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

              _phoneGapView = phoneGapView;
        }
コード例 #3
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/PhoneGapStarter2;component/MainPage.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.PGView     = ((WP7GapClassLib.PGView)(this.FindName("PGView")));
 }
コード例 #4
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/SandwichFlow;component/MainPage.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.PGView = ((WP7GapClassLib.PGView)(this.FindName("PGView")));
     this.splashImage = ((System.Windows.Controls.Image)(this.FindName("splashImage")));
     this.fadeOut = ((System.Windows.Media.Animation.Storyboard)(this.FindName("fadeOut")));
 }