protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            QuickUI.Init(this, bundle);
            SetPage(DemoApp.GetMainPage());
        }
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            QuickUI.Init(this, bundle);
            SetPage(Controls.QuickUIApp.GetQuickUIApp());
        }
        // Constructor
        public MainPage()
        {
            InitializeComponent();

            QuickUI.Init();
            Content = Controls.QuickUIApp.GetQuickUIApp().ConvertPageToUIElement(this);
        }
        // Constructor
        public MainPage()
        {
            InitializeComponent();
            QuickUI.Init();
            var app = new Spin2WinApp();

            Content = app.GetMainPage().ConvertPageToUIElement(this);
        }
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            QuickUI.Init(this, bundle);

            this.SetPage(ImapClientApp.MainApp.MainPage);
        }
Exemple #6
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            QuickUI.Init(this, bundle);

            SetPage(new MainQuickUIPage());
        }
Exemple #7
0
 public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions)
 {
     Window = new UIWindow(UIScreen.MainScreen.Bounds);
     QuickUI.Init();
     Window.RootViewController = CatalogPage.GetMainPage().GetViewController();
     Window.MakeKeyAndVisible();
     return(true);
 }
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            window = new UIWindow(UIScreen.MainScreen.Bounds);

            QuickUI.Init();

            var application = new Spin2WinApp();

            window.RootViewController = application.GetMainPage().GetViewController();
            window.MakeKeyAndVisible();

            return(true);
        }
Exemple #9
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);
            QuickUI.Init(this, bundle);
            var page = new DataPage();

            SetPage(page);

            var set = this.CreateBindingSet <DataView, DataViewModel>();

            set.Bind(page.listView).For(v => v.ItemSource).To(vm => vm.People);
            set.Apply();
        }
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            try {
                QuickUI.Init(this, bundle);
            } catch (Exception ex) {
                Console.WriteLine(ex.Message);
            }

            var app = new Spin2WinApp();

            SetPage(app.GetMainPage());
        }
        //
        // 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)
        {
            // create a new window instance based on the screen size
            window = new UIWindow(UIScreen.MainScreen.Bounds);

            Xamarin.Calabash.Start();
            QuickUI.Init();

            window.RootViewController = QuickUIApp.GetQuickUIApp().GetViewController();

            // make the window visible
            window.MakeKeyAndVisible();

            return(true);
        }
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);
            QuickUI.Init(this, bundle);
            var page = new WelcomePage();

            SetPage(page);

            var set = this.CreateBindingSet <WelcomeView, WelcomeViewModel>();

            set.Bind(page.loginButton).For(v => v.IsEnabled).To(vm => vm.LoginAvailable);
            set.Bind(page.loginButton).For(v => v.Command).To(vm => vm.Go);
            set.Bind(page.usernameEntry).To(vm => vm.UserName);
            set.Bind(page.passwordEntry).To(vm => vm.Password);
            set.Apply();
        }
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            QuickUI.Init(this, bundle);
            var page = new ContentPage
            {
                Content = new Label
                {
                    Text              = "Hello World!",
                    VerticalOptions   = LayoutOptions.Center,
                    HorizontalOptions = LayoutOptions.Center
                }
            };

            SetPage(page);
        }
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            window = new UIWindow(UIScreen.MainScreen.Bounds);

            QuickUI.Init();
            var page = new ContentPage {
                Content = new Label {
                    Text              = "Hello World!",
                    VerticalOptions   = LayoutOptions.Center,
                    HorizontalOptions = LayoutOptions.Center
                }
            };

            window.RootViewController = page.GetViewController();

            window.MakeKeyAndVisible();

            return(true);
        }
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            this.window = new UIWindow(UIScreen.MainScreen.Bounds);

            QuickUI.Init();

            var quickUiApp = ImapClientApp.MainApp;

            // Plug in the iOS version of the QR reader.
            ServiceContainer.Register <IQrService>(() => new ZXingQrService {
                Page = ((NavigationPage)quickUiApp.MainPage).Current
            });

            window.RootViewController = quickUiApp.MainPage.GetViewController();

            window.MakeKeyAndVisible();

            return(true);
        }
Exemple #16
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)
        {
            // create a new window instance based on the screen size
            window = new UIWindow(UIScreen.MainScreen.Bounds);
            QuickUI.Init();
            //Bootstrap.Register(() =>
            //{
            //    //register platform specific services here
            //});
            var controller = Bootstrap.MainApp.MainPage.CreateViewController();


            window.RootViewController = controller;
            // If you have defined a view, add it here:
            // window.RootViewController  = navigationController;

            // make the window visible
            window.MakeKeyAndVisible();

            return(true);
        }
        //
        // 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)
        {
            // create a new window instance based on the screen size
            window = new UIWindow(UIScreen.MainScreen.Bounds);

            // If you have defined a root view controller, set it here:
            // window.RootViewController = myViewController;


            QuickUI.Init();
            TramchesterApp.Init(() => {
                //Register platform specific services
            });
            var controller = TramchesterApp.GetMainAppUI().GetViewController();

            this.window.RootViewController = controller;

            // make the window visible
            window.MakeKeyAndVisible();

            return(true);
        }