VijayAnand.MauiToolkit.Pro 2.1.0-preview.5

The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. Prefix Reserved
This is a prerelease version of VijayAnand.MauiToolkit.Pro.
This package has a SemVer 2.0.0 package version: 2.1.0-preview.5+sha.06e14f9.
There is a newer version of this package available.
See the version list below for details.
dotnet add package VijayAnand.MauiToolkit.Pro --version 2.1.0-preview.5
NuGet\Install-Package VijayAnand.MauiToolkit.Pro -Version 2.1.0-preview.5
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="VijayAnand.MauiToolkit.Pro" Version="2.1.0-preview.5" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add VijayAnand.MauiToolkit.Pro --version 2.1.0-preview.5
#r "nuget: VijayAnand.MauiToolkit.Pro, 2.1.0-preview.5"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install VijayAnand.MauiToolkit.Pro as a Cake Addin
#addin nuget:?package=VijayAnand.MauiToolkit.Pro&version=2.1.0-preview.5&prerelease

// Install VijayAnand.MauiToolkit.Pro as a Cake Tool
#tool nuget:?package=VijayAnand.MauiToolkit.Pro&version=2.1.0-preview.5&prerelease

VijayAnand.MauiToolkit.Pro

This is a toolkit with a set of helper methods and classes to simplify working with .NET MAUI and Blazor.

Published as a NuGet package - VijayAnand.MauiToolkit.Pro

It depends on the following NuGet packages:

To start with, implements the concrete definition PopupDialogService for the IDialogService abstraction defined in Core package and IMauiDialogService abstraction defined in Regular package with the Popup type from the CommunityToolkit.Maui NuGet package.

Provides an extension method to register this service in .NET MAUI host builder startup:

UseVijayAnandMauiToolkitPro()

By default, the default value of configuration parameter is set to ServiceRegistrations.All.

Usage:

public static class MauiProgram
{
    public static MauiApp CreateMauiApp()
    {
        var builder = MauiApp.CreateBuilder();
        builder.UseMauiApp<App>()
               .UseMauiCommunityToolkit()
               .UseVijayAnandMauiToolkitPro(); // Implicit value of ServiceRegistrations.All passed as configuration parameter

        return builder.Build();
    }
}
Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  net7.0-android was computed.  net7.0-android33.0 is compatible.  net7.0-ios was computed.  net7.0-ios16.1 is compatible.  net7.0-maccatalyst was computed.  net7.0-maccatalyst16.1 is compatible.  net7.0-macos was computed.  net7.0-tizen7.0 is compatible.  net7.0-tvos was computed.  net7.0-windows was computed.  net7.0-windows10.0.19041 is compatible.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on VijayAnand.MauiToolkit.Pro:

Repository Stars
egvijayanand/dotnet-maui-samples
.NET MAUI Samples
Version Downloads Last updated
3.1.0 109 11/27/2023
3.0.0 65 11/14/2023
3.0.0-rc.2.2 37 11/7/2023
3.0.0-rc.2.1 46 10/31/2023
3.0.0-rc.2 44 10/13/2023
3.0.0-rc.1 47 9/18/2023
3.0.0-preview.7 49 9/12/2023
3.0.0-preview.1 74 4/24/2023
2.1.3 42 11/7/2023
2.1.2 54 10/31/2023
2.1.1 54 10/13/2023
2.1.0 59 9/19/2023
2.1.0-preview.7 51 9/12/2023
2.1.0-preview.6 65 4/24/2023
2.1.0-preview.5 67 1/3/2023
2.1.0-preview.4 84 1/2/2023
2.1.0-preview.3 66 12/30/2022
2.1.0-preview.2 69 12/28/2022
2.1.0-preview.1 60 12/27/2022
1.1.0 54 9/19/2023
1.1.0-preview.7 52 9/12/2023
1.1.0-preview.6 62 4/24/2023
1.1.0-preview.5 66 1/3/2023
1.1.0-preview.4 63 1/2/2023
1.1.0-preview.3 61 12/30/2022
1.1.0-preview.2 68 12/28/2022
1.1.0-preview.1 67 12/27/2022

What's new in ver. 2.1.0-preview.5:
-----------------------------------
Note: Version # is aligned with the other packages in this suite.

The toolkit updated to a newer revision.

v2.1.0-preview.4:

Additional parameter introduced in the custom Prompt dialog to validate the user entered value before dismissing the dialog.

2.1.0-preview.3:

VijayAnand.MauiToolkit.Pro NuGet package now depends on the VijayAnand.MauiToolkit NuGet package.

DialogService class renamed as PopupDialogService.

To support localization, support for the FlowDirection parameter is now part of the overloaded methods. To be opted-in explicitly.

To allow further customization, custom Style properties have been assigned to the respective Views in the Popup dialog design.

DialogStyle -> Style of the Popup dialog (to be defined on the Border View)
DialogTitle -> Title of the Popup dialog
DialogMessage -> Message shown in the Popup dialog
Action -> Default button style on the ActionSheet
PrimaryAction -> Style for the Accept action on the Popup dialog
SecondaryAction -> Style for the Cancel action on the Popup dialog
DestructiveAction -> Style for the Destructive action on the Popup dialog

v2.1.0-preview.2:

DialogService class is now marked as internal.

And to show the Popup implemented dialogs, follow any of the below-mentioned approaches:

1. via Dependency Injection:

Register the dependency in the .NET MAUI startup pipeline.

Either with the UseVijayAnandMauiToolkitPro() extension method (invoked on the MauiAppBuilder instance).

Or directly add it to the Service collection, like:

builder.Services.AddSingleton<IDialogService>(PopupDialog.Instance);

Then inject the instance of the IDialogService into the Page and invoke the appropriate method.

// Assuming _dialogService is the injected instance of IDialogService
await _dialogService.DisplayAlertAsync("Greeting", "Hello World", "OK");

2. via Static:

Instance of IDialogService is accessible via the PopupDialog type's Instance property.

await PopupDialog.Instance.DisplayAlertAsync("Greeting", "Hello World", "OK");

v2.1.0-preview.1:

1. Initial release of VijayAnand.MauiToolkit.Pro version of NuGet package.

2. Has dependency on CommunityToolkit.Maui and VijayAnand.MauiToolkit.Core NuGet packages.

3. To start with, a custom definition of the Dialogs based on the CommunityToolkit's Popup type.

3.1 This DialogService class is the implementation of the IDialogService interface definition in the Core package.

3.2 Register the dependency in the startup pipeline (MauiProgram.cs) with a call to the UseVijayAnandMauiToolkitPro() method:

Sample code:

public static class MauiProgram
{
   public static MauiApp CreateMauiApp()
   {
       var builder = MauiApp.CreateBuilder();
       builder.UseMauiApp<App>()
              .UseMauiCommunityToolkit()
              .UseVijayAnandMauiToolkitPro();

       return builder.Build();
   }
}

Join me on Developer Thoughts, https://egvijayanand.in/, an exclusive blog for .NET MAUI and Blazor.