예제 #1
0
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
#if ENABLE_TEST_CLOUD
            // requires Xamarin Test Cloud Agent
            Xamarin.Calabash.Start();
#endif
            global::Xamarin.Forms.Forms.Init();

            Forms.ViewInitialized += (object sender, ViewInitializedEventArgs e) =>
            {
                // http://developer.xamarin.com/recipes/testcloud/set-accessibilityidentifier-ios/
                if (null != e.View.AutomationId)
                {
                    e.NativeView.AccessibilityIdentifier = e.View.AutomationId;
                }
            };

            LoadApplication(new App());

            Messier16Controls.InitAll();

//            UIControl.Appearance.TintColor = App.AppTint.ToUIColor();

            return(base.FinishedLaunching(app, options));
        }
예제 #2
0
        //
        // This method is invoked when the application has loaded and is ready to run. In this
        // method you should instantiate the window, load the UI into it and then make the window
        // visible.
        //
        // You have 17 seconds to return from this method, or iOS will terminate your application.
        //
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            global::Xamarin.Forms.Forms.Init();
            Messier16Controls.InitAll();
            LoadApplication(new App());

            return(base.FinishedLaunching(app, options));
        }
예제 #3
0
        protected override void OnCreate(Bundle bundle)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(bundle);

            global::Xamarin.Forms.Forms.Init(this, bundle);
            Messier16Controls.InitAll();
            LoadApplication(new App());
        }
예제 #4
0
 void InitDependenciesAfterLibraries()
 {
     CachedImageRenderer.Init();
     FormsVideoPlayer.Init(@"1EAE2298627D7932F01F1B2E700FE4631897463C");
     BadgeColorTabbedNavigationContainerRenderer.InitRender();
     ColorTabbedNavigationContainerRenderer.InitRender();
     AdvancedTimerImplementation.Init();
     Messier16Controls.InitAll();
     AnimationViewRenderer.Init();
     CarouselViewRenderer.Init();
     new AdvancedFrameRendereriOS();
     new SfRatingRenderer();
     new SfImageEditorRenderer();
     SfImageEditorRenderer.Init();
     var t = typeof(RangeSliderRenderer);
     var l = new LockHelper();
 }
예제 #5
0
 void InitDependenciesAfterLibraries()
 {
     CachedImageRenderer.Init();
     CachedImage.FixedAndroidMotionEventHandler = true;
     CachedImage.FixedOnMeasureBehavior         = true;
     CarouselViewRenderer.Init();
     FormsVideoPlayer.Init(@"966AC4DFAAB5D7CEAC7250857C34B76223973994");
     BadgeColorTabbedNavigationContainerRenderer.Init();
     BadgeTabbedNavigationContainerRenderer.Init();
     AdvancedTimerImplementation.Init();
     Messier16Controls.InitAll();
     UserDialogs.Init(this);
     new AdvancedFrameRendererDroid();
     new SfRatingRenderer();
     new SfImageEditorRenderer();
     var t = typeof(RangeSliderRenderer);
     var l = new LockHelper();
 }
예제 #6
0
        /// <summary>
        /// Invoked when the application is launched normally by the end user.  Other entry points
        /// will be used such as when the application is launched to open a specific file.
        /// </summary>
        /// <param name="e">Details about the launch request and process.</param>
        protected override void OnLaunched(LaunchActivatedEventArgs e)
        {
//#if DEBUG
//            if (System.Diagnostics.Debugger.IsAttached)
//            {
//                this.DebugSettings.EnableFrameRateCounter = true;
//            }
//#endif

            Frame rootFrame = Window.Current.Content as Frame;

            // Do not repeat app initialization when the Window already has content,
            // just ensure that the window is active
            if (rootFrame == null)
            {
                // Create a Frame to act as the navigation context and navigate to the first page
                rootFrame = new Frame();

                rootFrame.NavigationFailed += OnNavigationFailed;

                Xamarin.Forms.Forms.Init(e); // Added support for Forms

                Messier16Controls.InitAll();

                if (e.PreviousExecutionState == ApplicationExecutionState.Terminated)
                {
                    //TODO: Load state from previously suspended application
                }

                // Place the frame in the current Window
                Window.Current.Content = rootFrame;
            }

            if (rootFrame.Content == null)
            {
                // When the navigation stack isn't restored navigate to the first page,
                // configuring the new page by passing required information as a navigation
                // parameter
                rootFrame.Navigate(typeof(MainPage), e.Arguments);
            }
            // Ensure the current window is active
            Window.Current.Activate();
        }
예제 #7
0
        protected override void OnCreate(Bundle bundle)
        {
            // set the layout resources first
            FormsAppCompatActivity.ToolbarResource   = Resource.Layout.toolbar;
            FormsAppCompatActivity.TabLayoutResource = Resource.Layout.tabs;
            base.OnCreate(bundle);

            global::Xamarin.Forms.Forms.Init(this, bundle);

            Messier16Controls.InitAll();

            Xamarin.Forms.Forms.ViewInitialized += (object sender, Xamarin.Forms.ViewInitializedEventArgs e) =>
            {
                if (!string.IsNullOrWhiteSpace(e.View.AutomationId))
                {
                    e.NativeView.ContentDescription = e.View.AutomationId;
                }
            };

            LoadApplication(new App());
        }