From 8fe6c6fe76358787dcc0a1e736da76e2115da4fa Mon Sep 17 00:00:00 2001 From: Vincent Niehues Date: Sun, 15 May 2022 15:21:58 +0200 Subject: [PATCH] SectionRouteAttribute ViewModels can now receive a SectionRouteAttribute to define what section they are contained in within the shell. BaseMethods changed to Respect SectionRouteAttribute. --- samples/mavvmApp/AppShell.xaml | 4 - .../mavvmApp/ViewModels/MainPageViewModel.cs | 4 +- .../ViewModels/SecondPageViewModel.cs | 6 +- .../ViewModels/SecondTabPageViewModel.cs | 12 ++- src/mavvm/Attibutes/SectionRouteAttribute.cs | 15 ++++ src/mavvm/Customs/MavvmShellContent.cs | 12 ++- src/mavvm/Navigation/BaseMethods.cs | 78 +++++-------------- src/mavvm/mavvm.csproj | 2 +- 8 files changed, 55 insertions(+), 78 deletions(-) create mode 100644 src/mavvm/Attibutes/SectionRouteAttribute.cs diff --git a/samples/mavvmApp/AppShell.xaml b/samples/mavvmApp/AppShell.xaml index 763ee8d..358c2f6 100644 --- a/samples/mavvmApp/AppShell.xaml +++ b/samples/mavvmApp/AppShell.xaml @@ -9,14 +9,10 @@ xmlns="http://schemas.microsoft.com/dotnet/2021/maui" - - - -