diff --git a/samples/ShellDemo/App.xaml b/samples/ShellDemo/App.xaml new file mode 100644 index 0000000..bfb7819 --- /dev/null +++ b/samples/ShellDemo/App.xaml @@ -0,0 +1,31 @@ + + + + + + #03A9F4 + #0288D1 + + + #4CAF50 + #FF9800 + #F44336 + #9C27B0 + #673AB7 + + + #F5F5F5 + #FFFFFF + #E1F5FE + + + #212121 + #757575 + + + #E0E0E0 + + + diff --git a/samples/ShellDemo/App.xaml.cs b/samples/ShellDemo/App.xaml.cs new file mode 100644 index 0000000..f909838 --- /dev/null +++ b/samples/ShellDemo/App.xaml.cs @@ -0,0 +1,12 @@ +using Microsoft.Maui.Controls; + +namespace ShellDemo; + +public partial class App : Application +{ + public App() + { + InitializeComponent(); + MainPage = new AppShell(); + } +} diff --git a/samples/ShellDemo/AppShell.xaml b/samples/ShellDemo/AppShell.xaml new file mode 100644 index 0000000..797f8b1 --- /dev/null +++ b/samples/ShellDemo/AppShell.xaml @@ -0,0 +1,48 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/samples/ShellDemo/AppShell.xaml.cs b/samples/ShellDemo/AppShell.xaml.cs new file mode 100644 index 0000000..70345c2 --- /dev/null +++ b/samples/ShellDemo/AppShell.xaml.cs @@ -0,0 +1,12 @@ +using Microsoft.Maui.Controls; + +namespace ShellDemo; + +public partial class AppShell : Shell +{ + public AppShell() + { + InitializeComponent(); + Routing.RegisterRoute("detail", typeof(Pages.DetailPage)); + } +} diff --git a/samples/ShellDemo/MauiProgram.cs b/samples/ShellDemo/MauiProgram.cs new file mode 100644 index 0000000..396b6d6 --- /dev/null +++ b/samples/ShellDemo/MauiProgram.cs @@ -0,0 +1,24 @@ +using Microsoft.Maui; +using Microsoft.Maui.Controls.Hosting; +using Microsoft.Maui.Hosting; +using Microsoft.Maui.Platform.Linux.Hosting; + +namespace ShellDemo; + +public static class MauiProgram +{ + public static MauiApp CreateMauiApp() + { + var builder = MauiApp.CreateBuilder(); + builder + .UseMauiApp() + .UseLinuxPlatform() + .ConfigureFonts(fonts => + { + fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular"); + fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold"); + }); + + return builder.Build(); + } +} diff --git a/samples/ShellDemo/Pages/AboutPage.xaml b/samples/ShellDemo/Pages/AboutPage.xaml new file mode 100644 index 0000000..56e8e2b --- /dev/null +++ b/samples/ShellDemo/Pages/AboutPage.xaml @@ -0,0 +1,115 @@ + + + + + + + + + diff --git a/samples/ShellDemo/Pages/AboutPage.xaml.cs b/samples/ShellDemo/Pages/AboutPage.xaml.cs new file mode 100644 index 0000000..c769347 --- /dev/null +++ b/samples/ShellDemo/Pages/AboutPage.xaml.cs @@ -0,0 +1,11 @@ +using Microsoft.Maui.Controls; + +namespace ShellDemo.Pages; + +public partial class AboutPage : ContentPage +{ + public AboutPage() + { + InitializeComponent(); + } +} diff --git a/samples/ShellDemo/Pages/ButtonsPage.xaml b/samples/ShellDemo/Pages/ButtonsPage.xaml new file mode 100644 index 0000000..334b191 --- /dev/null +++ b/samples/ShellDemo/Pages/ButtonsPage.xaml @@ -0,0 +1,176 @@ + + + + + + + + +