Plugin.Maui.MessagingCenter 1.0.0-preview1

This is a prerelease version of Plugin.Maui.MessagingCenter.
dotnet add package Plugin.Maui.MessagingCenter --version 1.0.0-preview1                
NuGet\Install-Package Plugin.Maui.MessagingCenter -Version 1.0.0-preview1                
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="Plugin.Maui.MessagingCenter" Version="1.0.0-preview1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Plugin.Maui.MessagingCenter --version 1.0.0-preview1                
#r "nuget: Plugin.Maui.MessagingCenter, 1.0.0-preview1"                
#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 Plugin.Maui.MessagingCenter as a Cake Addin
#addin nuget:?package=Plugin.Maui.MessagingCenter&version=1.0.0-preview1&prerelease

// Install Plugin.Maui.MessagingCenter as a Cake Tool
#tool nuget:?package=Plugin.Maui.MessagingCenter&version=1.0.0-preview1&prerelease                

alternate text is missing from this package README image

Plugin.Maui.MessagingCenter

Plugin.Maui.MessagingCenter provides a drop-in compatible replacement for the .NET MAUI MessagingCenter which has been deprecated and removed.

Please note that you probably want to adopt the MVVM Toolkit Messenger APIs as they provide more functionality.

[!IMPORTANT]
This library is meant to make the migration from Xamarin.Forms to .NET MAUI easier, not to provide a long-term solution.

Install Plugin

NuGet

Available on NuGet.

Install with the dotnet CLI: dotnet add package Plugin.Maui.MessagingCenter, or through the NuGet Package Manager in Visual Studio.

API Usage

After you have installed this library, you can either add the using statement at the top of each file where you are using MessagingCenter (using Plugin.Maui.MessagingCenter;), or opt for a global using statement so you only need to do it once.

The API can be used the same as the .NET MAUI MessagingCenter APIs. You probably came here because you are already using the MessagingCenter in your .NET MAUI app, so you probably don't need more explanation. If you do need a reference, please find the documentation on the .NET MAUI MessagingCenter here and the MVVM Toolkit Messenger here.

Acknowledgements

The bubble icon has kindly been provided by Smashicons

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-android34.0 is compatible.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-ios17.2 is compatible.  net8.0-maccatalyst was computed.  net8.0-maccatalyst17.2 is compatible.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net8.0-windows10.0.19041 is compatible. 
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

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0-preview1 2,076 7/10/2024