Наследование: System.Windows.Controls.UserControl
Пример #1
0
 public NativePageTransitions()
 {
     cView = getCordovaView();
     browser = cView.Browser;
     //browser.Navigated += Browser_Navigated;
     //browser.Navigating += Browser_Navigating;
     img = new Image();
 }
Пример #2
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/com.ninki.wallet;component/MainPage.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.CordovaView = ((WPCordovaClassLib.CordovaView)(this.FindName("CordovaView")));
 }
Пример #3
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/com.example.piggy;component/MainPage.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.CordovaView = ((WPCordovaClassLib.CordovaView)(this.FindName("CordovaView")));
 }
Пример #4
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/io.cordova.myappe2785d518e9f4f6ea03055878dd7a400;component/MainPage.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.CordovaView = ((WPCordovaClassLib.CordovaView)(this.FindName("CordovaView")));
 }
Пример #5
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Trial_Foody;component/MainPage.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.CordovaView = ((WPCordovaClassLib.CordovaView)(this.FindName("CordovaView")));
     this.SplashImage = ((System.Windows.Controls.Image)(this.FindName("SplashImage")));
     this.SplashProjector = ((System.Windows.Media.PlaneProjection)(this.FindName("SplashProjector")));
 }
Пример #6
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/io.cordova.myappe2785d518e9f4f6ea03055878dd7a400;component/MainPage.xaml", System.UriKind.Relative));
     this.LayoutRoot  = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.CordovaView = ((WPCordovaClassLib.CordovaView)(this.FindName("CordovaView")));
 }
Пример #7
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/CordovaExample;component/MainPage.xaml", System.UriKind.Relative));
     this.LayoutRoot      = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.PGView          = ((WPCordovaClassLib.CordovaView)(this.FindName("PGView")));
     this.SplashImage     = ((System.Windows.Controls.Image)(this.FindName("SplashImage")));
     this.SplashProjector = ((System.Windows.Media.PlaneProjection)(this.FindName("SplashProjector")));
 }
Пример #8
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/com.mobileservices.nenerede;component/MainPage.xaml", System.UriKind.Relative));
     this.AppbarButtonMain    = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("AppbarButtonMain")));
     this.AppbarButtonSearch  = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("AppbarButtonSearch")));
     this.AppbarButtonProfile = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("AppbarButtonProfile")));
     this.LayoutRoot          = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.CordovaView         = ((WPCordovaClassLib.CordovaView)(this.FindName("CordovaView")));
 }
Пример #9
0
 /// <summary>
 /// Set cordova view height based on banner height and frame orientation
 /// landscape or portrait
 /// </summary>
 private void setCordovaViewHeight(PhoneApplicationFrame frame, CordovaView view)
 {
     if (frame != null && view != null)
     {
         if (frame.Orientation == PageOrientation.Portrait ||
             frame.Orientation == PageOrientation.PortraitDown ||
             frame.Orientation == PageOrientation.PortraitUp)
         {
             view.Height = initialViewHeight - BANNER_HEIGHT_PORTRAIT;
         }
         else
         {
             view.Height = initialViewWidth - BANNER_HEIGHT_LANDSCAPE;
         }
     }
 }
Пример #10
0
        /// Set cordova view height based on banner height and frame orientation
        private void setCordovaViewHeight(PhoneApplicationFrame frame, CordovaView view)
        {
            bool deduct = bannerVisible && (! overlap);

            if (frame.Orientation == PageOrientation.Portrait ||
                frame.Orientation == PageOrientation.PortraitDown ||
                frame.Orientation == PageOrientation.PortraitUp) {
                view.Height = initialViewHeight - deduct ? BANNER_HEIGHT_PORTRAIT : 0;
            } else {
                view.Height = initialViewWidth - deduct ? BANNER_HEIGHT_LANDSCAPE : 0;
            }

            fireEvent ("window", "resize", null);
        }
Пример #11
0
        protected void __showBannerSplit(Grid grid, CordovaView view, int position)
        {
            if(row == null) {
                row = new RowDefinition();
                row.Height = GridLength.Auto;
            }

            grid.Children.Add(bannerAd);

            switch((position-1)/3) {
            case 0:
                grid.RowDefinitions.Insert(0,row);
                Grid.SetRow(bannerAd, 0);
                Grid.SetRow(view, 1);
                break;
            case 1:
            case 2:
                grid.RowDefinitions.Add(row);
                Grid.SetRow(bannerAd, 1);
                break;
            }
        }