-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Updated all projects to .NET 8 * Added ViewModel paramater resolution, bump remaining projects to .NET 8 * Started updating demo for new functionality * Started adding parameterised viewmodel navigation * Added a page to viewmodel mapping source generator * Progress on source generator * Working except with page params + vm * Working with page params + viewmodel * Working with page params + viewmodel * Refactored auto-dependencies * Added scope check to demo * Updated source generator extension method * Started adding source generator for Page->VM lookup * Added view model mappings to source generator * Preparing nuget package, moved mappings into static method in source generator * Completed the source generator * Completed first version of v2 Removed legacy autoreg * Updated workflow * Updated readme
- Loading branch information
1 parent
88cb563
commit 9bff31e
Showing
32 changed files
with
998 additions
and
382 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -348,3 +348,4 @@ MigrationBackup/ | |
|
||
# Ionide (cross platform F# VS Code tools) working folder | ||
.ionide/ | ||
.meteor/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio Version 17 | ||
VisualStudioVersion = 17.5.002.0 | ||
MinimumVisualStudioVersion = 10.0.40219.1 | ||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DemoProject", "DemoProject.csproj", "{2F0A035E-54E3-44D4-9673-2A587817E709}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Any CPU = Debug|Any CPU | ||
Release|Any CPU = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{2F0A035E-54E3-44D4-9673-2A587817E709}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{2F0A035E-54E3-44D4-9673-2A587817E709}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{2F0A035E-54E3-44D4-9673-2A587817E709}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{2F0A035E-54E3-44D4-9673-2A587817E709}.Release|Any CPU.Build.0 = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
GlobalSection(ExtensibilityGlobals) = postSolution | ||
SolutionGuid = {F10F3864-BA48-4B13-980D-F13F75A78214} | ||
EndGlobalSection | ||
EndGlobal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/DemoProject/Pages/ParamPage.xaml.cs → src/DemoProject/Pages/PageParamPage.xaml.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | ||
x:Class="DemoProject.Pages.ScopeCheckPage" | ||
Title="ScopeCheckPage"> | ||
<VerticalStackLayout> | ||
<Label | ||
Text="Value from default service" | ||
FontSize="Large" | ||
VerticalOptions="Center" | ||
HorizontalTextAlignment="Center" | ||
HorizontalOptions="Center" /> | ||
<Label | ||
Text="(should retain value between page visits)" | ||
FontSize="Large" | ||
VerticalOptions="Center" | ||
HorizontalTextAlignment="Center" | ||
HorizontalOptions="Center" /> | ||
|
||
<Label | ||
Text="{Binding DefaultCount}" | ||
FontSize="Large" | ||
VerticalOptions="Center" | ||
HorizontalTextAlignment="Center" | ||
HorizontalOptions="Center" | ||
Margin="0,0,0,30"/> | ||
|
||
<Label | ||
Text="Value from default service" | ||
FontSize="Large" | ||
VerticalOptions="Center" | ||
HorizontalTextAlignment="Center" | ||
HorizontalOptions="Center" /> | ||
<Label | ||
Text="(should reset each page visit)" | ||
FontSize="Large" | ||
VerticalOptions="Center" | ||
HorizontalTextAlignment="Center" | ||
HorizontalOptions="Center" /> | ||
|
||
<Label | ||
Text="{Binding CustomCount}" | ||
FontSize="Large" | ||
VerticalOptions="Center" | ||
HorizontalTextAlignment="Center" | ||
HorizontalOptions="Center" | ||
Margin="0,0,0,30"/> | ||
|
||
<Button Text="Increase count" | ||
Command="{Binding IncreaseCountCommand}"/> | ||
</VerticalStackLayout> | ||
</ContentPage> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
namespace DemoProject.Pages; | ||
|
||
public partial class ScopeCheckPage : ContentPage | ||
{ | ||
public ScopeCheckPage(ScopeCheckViewModel viewModel) | ||
{ | ||
InitializeComponent(); | ||
BindingContext = viewModel; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | ||
x:Class="DemoProject.Pages.VmParamPage" | ||
Title="VmParamPage"> | ||
<VerticalStackLayout> | ||
<Label Text="Welcome to .NET MAUI!" | ||
VerticalOptions="CenterAndExpand" | ||
HorizontalOptions="CenterAndExpand" /> | ||
<Label Text="Your name is:" | ||
VerticalOptions="CenterAndExpand" | ||
HorizontalOptions="CenterAndExpand" /> | ||
<Label Text="{Binding NameParam}" | ||
VerticalOptions="CenterAndExpand" | ||
HorizontalOptions="CenterAndExpand" /> | ||
</VerticalStackLayout> | ||
</ContentPage> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
namespace DemoProject.Pages; | ||
|
||
public partial class VmParamPage : ContentPage | ||
{ | ||
public VmParamPage(VmParamViewModel viewModel) | ||
{ | ||
InitializeComponent(); | ||
BindingContext = viewModel; | ||
} | ||
} |
Oops, something went wrong.