From 4db4e6a36f92ba5cef9232fef26db7aa7c675944 Mon Sep 17 00:00:00 2001 From: Dan Siegel Date: Sat, 27 Jan 2024 10:17:49 -0600 Subject: [PATCH 01/15] chore: add vs code configurations --- .vscode/extensions.json | 5 +++++ .vscode/launch.json | 14 ++++++++++++++ .vscode/settings.json | 6 ++++++ 3 files changed, 25 insertions(+) create mode 100644 .vscode/extensions.json create mode 100644 .vscode/launch.json create mode 100644 .vscode/settings.json diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..b3879c2 --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,5 @@ +{ + "recommendations": [ + "ms-dotnettools.dotnet-maui" + ] +} \ No newline at end of file diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..c5c01d7 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,14 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": ".NET MAUI", + "type": "maui", + "request": "launch", + "preLaunchTask": "maui: Build" + } + ] +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..de44f25 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,6 @@ +{ + "cSpell.words": [ + "autowire", + "Mvvm" + ] +} \ No newline at end of file From 20efb3e59d0c31e50caa6b2c98399467c4856363 Mon Sep 17 00:00:00 2001 From: Dan Siegel Date: Sat, 27 Jan 2024 10:18:00 -0600 Subject: [PATCH 02/15] chore: fix spelling --- src/MauiMicroMvvm/Xaml/MauiMicro.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MauiMicroMvvm/Xaml/MauiMicro.cs b/src/MauiMicroMvvm/Xaml/MauiMicro.cs index cabfa24..20e4559 100644 --- a/src/MauiMicroMvvm/Xaml/MauiMicro.cs +++ b/src/MauiMicroMvvm/Xaml/MauiMicro.cs @@ -46,10 +46,10 @@ private static void OnRouteChanged(BindableObject bindable, object oldValue, obj return; content.Route = route; - SetContentTempalte(content, route); + SetContentTemplate(content, route); } - private static void SetContentTempalte(ShellContent content, string route) + private static void SetContentTemplate(ShellContent content, string route) { content.ContentTemplate = new DataTemplate(() => CreateView(route)); } From eaed6f50d5f43e7f8bafed71f53db92c19601a00 Mon Sep 17 00:00:00 2001 From: Dan Siegel Date: Sat, 27 Jan 2024 10:19:18 -0600 Subject: [PATCH 03/15] chore: add required package reference for .net8 --- sample/MauiMicroSample/MauiMicroSample.csproj | 2 ++ src/MauiMicroMvvm.Rx/MauiMicroMvvm.Rx.csproj | 1 + .../content/MauiMicroApp.1/MauiMicroApp.1.csproj | 3 ++- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/sample/MauiMicroSample/MauiMicroSample.csproj b/sample/MauiMicroSample/MauiMicroSample.csproj index b91b1cf..e8ef41f 100644 --- a/sample/MauiMicroSample/MauiMicroSample.csproj +++ b/sample/MauiMicroSample/MauiMicroSample.csproj @@ -49,6 +49,8 @@ + + diff --git a/src/MauiMicroMvvm.Rx/MauiMicroMvvm.Rx.csproj b/src/MauiMicroMvvm.Rx/MauiMicroMvvm.Rx.csproj index beb009d..114d8f6 100644 --- a/src/MauiMicroMvvm.Rx/MauiMicroMvvm.Rx.csproj +++ b/src/MauiMicroMvvm.Rx/MauiMicroMvvm.Rx.csproj @@ -12,6 +12,7 @@ + diff --git a/src/MauiMicroMvvm.Templates/content/MauiMicroApp.1/MauiMicroApp.1.csproj b/src/MauiMicroMvvm.Templates/content/MauiMicroApp.1/MauiMicroApp.1.csproj index 7f56f1a..67e902a 100644 --- a/src/MauiMicroMvvm.Templates/content/MauiMicroApp.1/MauiMicroApp.1.csproj +++ b/src/MauiMicroMvvm.Templates/content/MauiMicroApp.1/MauiMicroApp.1.csproj @@ -17,7 +17,6 @@ $ApplicationId$ - 683037c3-6415-40f7-a541-bdc57964b0d2 1.0 @@ -52,6 +51,8 @@ + + From fff8d5483e072cbd5e960c20d3063abbd2cd8577 Mon Sep 17 00:00:00 2001 From: Dan Siegel Date: Sat, 27 Jan 2024 10:20:05 -0600 Subject: [PATCH 04/15] chore: add dialog demo --- sample/MauiMicroSample/AppShell.xaml | 5 ++++ sample/MauiMicroSample/MauiProgram.cs | 1 + sample/MauiMicroSample/Pages/DialogDemo.xaml | 16 +++++++++++++ .../MauiMicroSample/Pages/DialogDemo.xaml.cs | 9 ++++++++ sample/MauiMicroSample/Pages/MainPage.xaml.cs | 11 ++++----- .../Resources/Images/dialog.svg | 1 + .../ViewModels/DialogDemoViewModel.cs | 23 +++++++++++++++++++ 7 files changed, 60 insertions(+), 6 deletions(-) create mode 100644 sample/MauiMicroSample/Pages/DialogDemo.xaml create mode 100644 sample/MauiMicroSample/Pages/DialogDemo.xaml.cs create mode 100644 sample/MauiMicroSample/Resources/Images/dialog.svg create mode 100644 sample/MauiMicroSample/ViewModels/DialogDemoViewModel.cs diff --git a/sample/MauiMicroSample/AppShell.xaml b/sample/MauiMicroSample/AppShell.xaml index 35f9231..c76c71e 100644 --- a/sample/MauiMicroSample/AppShell.xaml +++ b/sample/MauiMicroSample/AppShell.xaml @@ -16,6 +16,11 @@ + + + + diff --git a/sample/MauiMicroSample/MauiProgram.cs b/sample/MauiMicroSample/MauiProgram.cs index 41297cb..c3672ea 100644 --- a/sample/MauiMicroSample/MauiProgram.cs +++ b/sample/MauiMicroSample/MauiProgram.cs @@ -23,6 +23,7 @@ public static MauiApp CreateMauiApp() }); builder.Services.MapView() + .MapView() .MapView() .MapView() .MapView() diff --git a/sample/MauiMicroSample/Pages/DialogDemo.xaml b/sample/MauiMicroSample/Pages/DialogDemo.xaml new file mode 100644 index 0000000..cbfb325 --- /dev/null +++ b/sample/MauiMicroSample/Pages/DialogDemo.xaml @@ -0,0 +1,16 @@ + + + +