Ejemplo n.º 1
0
 public MainWindow()
 {
     InitializeComponent();
     Forms.Init();
     CoreSampleBrowser.Init();
     SfDataGridRenderer.Init();
     SfListViewRenderer.Init();
     LoadApplication(new SfDataGrid.App());
 }
Ejemplo n.º 2
0
 public MainWindow()
 {
     InitializeComponent();
     Forms.Init();
     CoreSampleBrowser.Init();
     SfListViewRenderer.Init();
     SfCheckBoxRenderer.Init();
     LoadApplication(new SampleBrowser.SfListView.App());
 }
Ejemplo n.º 3
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();
            SfDataFormRenderer.Init();
            SfListViewRenderer.Init();
            CoreSampleBrowser.Init(UIScreen.MainScreen.Bounds, app.StatusBarFrame.Size.Height);
            LoadApplication(new App());

            return(base.FinishedLaunching(app, options));
        }
Ejemplo n.º 4
0
 public MainWindow()
 {
     InitializeComponent();
     Forms.Init();
     CoreSampleBrowser.Init();
     SfGradientViewRenderer.Init();
     SfSegmentedControlRenderer.Init();
     SfChipGroupRenderer.Init();
     LoadApplication(new SampleBrowser.SfGradientView.App());
 }
Ejemplo n.º 5
0
        /// <summary>
        /// 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.
        /// </summary>
        /// <param name="app">Encapsulates the main processing loop for a mono Touch application type parameter app</param>
        /// <param name="options">Dictionary that provides mapping from keys to values parameter options</param>
        /// <returns>returns base.FinishedLaunching</returns>
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            Forms.Init();
            CoreSampleBrowser.Init(UIScreen.MainScreen.Bounds, app.StatusBarFrame.Size.Height);
            SfPopupLayoutRenderer.Init();
            SfDataGridRenderer.Init();
            SfListViewRenderer.Init();
            this.LoadApplication(new App());

            return(base.FinishedLaunching(app, options));
        }
Ejemplo n.º 6
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);
            // Pass the activity and Resources to core android project
            CoreSampleBrowser.Init(Resources, this);
            LoadApplication(new App());
        }
Ejemplo n.º 7
0
 public MainWindow()
 {
     InitializeComponent();
     Forms.Init();
     CoreSampleBrowser.Init();
     SfBadgeViewRenderer.Init();
     SfSegmentedControlRenderer.Init();
     SfChipGroupRenderer.Init();
     SfBorderRenderer.Init();
     SfTextInputLayoutRenderer.Init();
     SfButtonRenderer.Init();
     SfListViewRenderer.Init();
     LoadApplication(new SampleBrowser.SfBadgeView.App());
 }
Ejemplo n.º 8
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(savedInstanceState);
            Rg.Plugins.Popup.Popup.Init(this);
            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);

            Platform.Init();

            Forms.Init(this, savedInstanceState);

            var dbFile             = "settings_db.db3";
            var folderPath         = Environment.GetFolderPath(Environment.SpecialFolder.Personal);
            var dbFileCompletePath = Path.Combine(folderPath, dbFile);

            CoreSampleBrowser.Init(Resources, this);

            LoadApplication(new App(dbFileCompletePath));

            Toolbar toolbar = this.FindViewById <Toolbar>(Resource.Id.toolbar);

            SetSupportActionBar(toolbar);

            int uiOptions = (int)Window.DecorView.SystemUiVisibility;

            uiOptions |= (int)SystemUiFlags.LowProfile;
            uiOptions |= (int)SystemUiFlags.Fullscreen;
            uiOptions |= (int)SystemUiFlags.HideNavigation;
            uiOptions |= (int)SystemUiFlags.ImmersiveSticky;

            Window.DecorView.SystemUiVisibility = (StatusBarVisibility)uiOptions;

            Window.SetSoftInputMode(SoftInput.AdjustResize);

            Instance = this;
        }