From 76847820629d2c70c3e7004969b04ab2a135bb7e Mon Sep 17 00:00:00 2001 From: roubachof Date: Wed, 22 Jun 2022 19:56:34 +0200 Subject: [PATCH] fix xf sample, add TemplatedTaskLoader to sample --- README.md | 92 +++++++++- Retronado.Maui/Retronado.Maui.sln | 5 + .../ExceptionToErrorMessageConverter.cs | 8 +- .../ExceptionToImageSourceConverter.cs | 8 +- Retronado/Sample/Styles/Global.xaml | 124 ++++++------- .../ViewModels/CommandsPageViewModel.cs | 23 ++- .../ViewModels/ErrorEmulatorViewModel.cs | 3 + .../ViewModels/LoadOnDemandViewModel.cs | 5 +- Retronado/Sample/Views/CommandsPage.xaml | 97 +++++++--- .../Sample/Views/DefaultIsBusyViewsPage.xaml | 5 +- Retronado/Sample/Views/DefaultViewsPage.xaml | 168 +++++++++--------- .../Views/DefaultViewsSkeletonPage.xaml | 27 +-- Retronado/Sample/Views/LottieViewsPage.xaml | 14 +- Retronado/Sample/Views/MainPage.xaml | 11 +- Retronado/Sample/Views/UserViewsPage.xaml | 23 +-- .../Sharpnado.Maui.TaskLoaderView.csproj | 10 +- .../CompositeTaskLoaderNotifier.Builder.cs | 32 ++++ .../CompositeTaskLoaderNotifier.cs | 82 +++++++-- .../Sharpnado.TaskLoaderView.csproj | 6 +- ...harpnado.TaskLoaderView.csproj.DotSettings | 2 + .../TemplatedTaskLoader.cs | 137 ++++++++++++++ 21 files changed, 633 insertions(+), 249 deletions(-) create mode 100644 Sharpnado.TaskLoaderView/CompositeTaskLoaderNotifier.Builder.cs create mode 100644 Sharpnado.TaskLoaderView/Sharpnado.TaskLoaderView.csproj.DotSettings create mode 100644 Sharpnado.TaskLoaderView/TemplatedTaskLoader.cs diff --git a/README.md b/README.md index ccca185..318afc4 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,11 @@ # TaskLoaderView 2.0: Let's burn IsBusy=true! - + + + + + + The `TaskLoaderView` is a UI component that handles all your UI loading state (Loading, Error, Result, Notification), and removes all the pain of async loading from your view models (try catch / async void / IsBusy / HasErrors / base view models / ...) thanks to its brother the `TaskLoaderNotifier`. @@ -22,6 +27,91 @@ It has been tested on **Android**, **iOS** and **UWP** platforms through the `Re It uses the Sharpnado's [TaskMonitor](https://github.com/roubachof/Sharpnado.TaskMonitor). +## 2.5.0 MAUI support \o/ and TemplatedTaskLoader + +Version 2.5.0 now supports .Net MAUI. + +New `TemplatedTaskLoader`: it does the same job as the `TaskLoaderView` but using `ControlTemplate` instead of a absolute layout of views. + +```xml + + + + ... + + + + + ... + + + + + ... + + + + +... + + + + + + + + + + + +