Update with recovered code from VM binaries (Jan 1)
- ShellDemo: Updated all pages with recovered code, added AppShell.cs - TodoApp: Updated core files, added converters - XamlBrowser: Added recovered sample
This commit is contained in:
22
XamlBrowser/MauiProgram.cs
Normal file
22
XamlBrowser/MauiProgram.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using Microsoft.Maui.Controls.Hosting;
|
||||
using Microsoft.Maui.Hosting;
|
||||
using Microsoft.Maui.Platform.Linux;
|
||||
using Microsoft.Maui.Platform.Linux.Hosting;
|
||||
|
||||
namespace XamlBrowser;
|
||||
|
||||
public static class MauiProgram
|
||||
{
|
||||
public static void Main(string[] args)
|
||||
{
|
||||
MauiAppBuilder obj = MauiApp.CreateBuilder(true);
|
||||
AppHostBuilderExtensions.UseMauiApp<BrowserApp>(obj).UseLinux();
|
||||
LinuxApplication.Run(obj.Build(), args, delegate(LinuxApplicationOptions options)
|
||||
{
|
||||
options.Title = "XAML Browser";
|
||||
options.Width = 1200;
|
||||
options.Height = 800;
|
||||
options.UseGtk = true;
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user