diff --git a/AdventureWorks.MAUI/AdventureWorks.MAUI.csproj b/AdventureWorks.MAUI/AdventureWorks.MAUI.csproj index a193795..a4ce1a6 100644 --- a/AdventureWorks.MAUI/AdventureWorks.MAUI.csproj +++ b/AdventureWorks.MAUI/AdventureWorks.MAUI.csproj @@ -64,4 +64,34 @@ + + + LoginView.xaml + + + + + + MSBuild:Compile + + + MSBuild:Compile + + + MSBuild:Compile + + + MSBuild:Compile + + + MSBuild:Compile + + + MSBuild:Compile + + + MSBuild:Compile + + + diff --git a/AdventureWorks.MAUI/AppShell.xaml b/AdventureWorks.MAUI/AppShell.xaml index 6cbee92..70b2b9b 100644 --- a/AdventureWorks.MAUI/AppShell.xaml +++ b/AdventureWorks.MAUI/AppShell.xaml @@ -4,13 +4,40 @@ xmlns="http://schemas.microsoft.com/dotnet/2021/maui" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:local="clr-namespace:AdventureWorks.MAUI" + xmlns:views="clr-namespace:AdventureWorks.MAUI.Views" Title="Adventure Works" Shell.TitleColor="Blue" Shell.BackgroundColor="LightBlue"> - - - + + + + + + + + + + + diff --git a/AdventureWorks.MAUI/AppShell.xaml.cs b/AdventureWorks.MAUI/AppShell.xaml.cs index ffd9973..7e4e4d3 100644 --- a/AdventureWorks.MAUI/AppShell.xaml.cs +++ b/AdventureWorks.MAUI/AppShell.xaml.cs @@ -5,6 +5,10 @@ public AppShell() { InitializeComponent(); + + // Register routes for navigation + Routing.RegisterRoute(nameof(Views.UserDetailView), typeof(Views.UserDetailView)); + } } } diff --git a/AdventureWorks.MAUI/MainPage.xaml b/AdventureWorks.MAUI/MainPage.xaml index 4d4e6db..b418bd3 100644 --- a/AdventureWorks.MAUI/MainPage.xaml +++ b/AdventureWorks.MAUI/MainPage.xaml @@ -4,79 +4,9 @@ x:Class="AdventureWorks.MAUI.MainPage" Title="{StaticResource ApplicationTitle}"> - - - -