Example #1
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            Xamarin.Forms.Forms.Init(this, bundle);
            FormsMaps.Init(this, bundle);
            SvgImageRenderer.Init();
            ExtendedTextCellRenderer.Init();
            ExtendedMapRenderer.Init();
            RoundedBoxViewRenderer.Init();


            // http://forums.xamarin.com/discussion/21148/calabash-and-xamarin-forms-what-am-i-missing
            global::Xamarin.Forms.Forms.ViewInitialized += (object sender, Xamarin.Forms.ViewInitializedEventArgs e) => {
                if (!string.IsNullOrWhiteSpace(e.View.StyleId))
                {
                    if (e.NativeView != null)
                    {
                        e.NativeView.ContentDescription = e.View.StyleId;
                    }
                }
            };

            LoadApplication(new App());
        }
Example #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();
            FormsMaps.Init();
            SvgImageRenderer.Init();
            ExtendedTextCellRenderer.Init();
            ExtendedMapRenderer.Init();
            LoadApplication(new App());

            return(base.FinishedLaunching(app, options));
        }
Example #3
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            global::Xamarin.Forms.Forms.Init(this, bundle);
            FormsMaps.Init(this, bundle);
            SvgImageRenderer.Init();
            ExtendedTextCellRenderer.Init();
            ExtendedMapRenderer.Init();

            LoadApplication(new App());
        }
Example #4
0
        // Constructor
        public MainPage()
        {
            InitializeComponent();

            Xamarin.Forms.Forms.Init();
            FormsMaps.Init();
            SvgImageRenderer.Init();
            ExtendedTextCellRenderer.Init();
            ExtendedMapRenderer.Init();
            RoundedBoxViewRenderer.Init();

            LoadApplication(new PluginSampleApp.App());
        }
Example #5
0
        public MainPage()
        {
            InitializeComponent();
            SupportedOrientations = SupportedPageOrientation.PortraitOrLandscape;

            Xamarin.Forms.Forms.Init();
            FormsMaps.Init();
            SvgImageRenderer.Init();
            ExtendedTextCellRenderer.Init();
            ExtendedMapRenderer.Init();

            LoadApplication(new SampleApp.App());
        }