Example #1
0
 public MainWindow(string[] args)
 {
     Forms.Init();
     this.Title = "Nethereum Hybrid";
     BlazorHybridWindows.Init();
     LoadApplication(new App(args: args));
 }
Example #2
0
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);

            Xamarin.Forms.Forms.Init();
            BlazorHybridWindows.Init();

            // create a Xamarin Forms ContentPage container
            var xfContentPage = new Xamarin.Forms.ContentPage();

            // add MBB Hybrid Blazor/Xamarin components as-needed to that container
            _host.AddComponent <Main>(parent: xfContentPage);

            // optional, create a vanilla WPF container of some sort (here, a Grid)
            var grid = new System.Windows.Controls.Grid();

            // create a top-level vanilla WPF window, with the Grid as it's content
            var window = new Window {
                Content = grid
            };

            // add the Xamarin container to the WPF grid (can safely add other WPF elements to the grid as well)
            grid.Children.Add(xfContentPage.ToFrameworkElement());

            // show the top-level vanilla WPF window
            window.Show();
        }
Example #3
0
 public MainWindow()
 {
     Forms.Init();
     BlazorHybridWindows.Init();
     LoadApplication(new App());
 }
Example #4
0
 public MainWindow()
 {
     BlazorHybridWindows.Init();
     Forms.Init();
     LoadApplication(new MainPage());
 }
Example #5
0
File: App.cs Project: Kukks/Hara
 public MainWindow()
 {
     Forms.Init();
     BlazorHybridWindows.Init();
     LoadApplication(new App(null, collection => {}));
 }
 public MainWindow(string[] args)
 {
     BlazorHybridWindows.Init();
     Forms.Init();
     LoadApplication(new MainPage(args: args));
 }
Example #7
0
 public MainWindow(string[] args)
 {
     Forms.Init();
     BlazorHybridWindows.Init();
     LoadApplication(new App(args));
 }