public MainWindow(string[] args) { Forms.Init(); this.Title = "Nethereum Hybrid"; BlazorHybridWindows.Init(); LoadApplication(new App(args: args)); }
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(); }
public MainWindow() { Forms.Init(); BlazorHybridWindows.Init(); LoadApplication(new App()); }
public MainWindow() { BlazorHybridWindows.Init(); Forms.Init(); LoadApplication(new MainPage()); }
public MainWindow() { Forms.Init(); BlazorHybridWindows.Init(); LoadApplication(new App(null, collection => {})); }
public MainWindow(string[] args) { BlazorHybridWindows.Init(); Forms.Init(); LoadApplication(new MainPage(args: args)); }
public MainWindow(string[] args) { Forms.Init(); BlazorHybridWindows.Init(); LoadApplication(new App(args)); }