diff --git a/Marechai.App/App.xaml.cs b/Marechai.App/App.xaml.cs index 1b3eb70e..a87dcc79 100644 --- a/Marechai.App/App.xaml.cs +++ b/Marechai.App/App.xaml.cs @@ -100,6 +100,8 @@ public partial class App : Application // Register application services services.AddSingleton(); services.AddSingleton(); + services.AddSingleton(); + services.AddSingleton(); }) .UseNavigation(RegisterRoutes)); @@ -117,14 +119,27 @@ public partial class App : Application { views.Register(new ViewMap(ViewModel: typeof(ShellViewModel)), new ViewMap(), + new ViewMap(), + new ViewMap(), new DataViewMap()); routes.Register(new RouteMap("", views.FindByViewModel(), Nested: [ - new RouteMap("Main", views.FindByViewModel(), true), - new RouteMap("Second", views.FindByViewModel()) + new RouteMap("Main", + views.FindByViewModel(), + true, + Nested: + [ + new RouteMap("News", + views.FindByViewModel(), + true), + new RouteMap("computers", + views.FindByViewModel()), + new RouteMap("Second", + views.FindByViewModel()) + ]) ])); } } \ No newline at end of file diff --git a/Marechai.App/Presentation/ComputersPage.xaml b/Marechai.App/Presentation/ComputersPage.xaml new file mode 100644 index 00000000..8e6b91c6 --- /dev/null +++ b/Marechai.App/Presentation/ComputersPage.xaml @@ -0,0 +1,297 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +