Plugin.Maui.MessagingCenter
1.0.0-preview1
dotnet add package Plugin.Maui.MessagingCenter --version 1.0.0-preview1
NuGet\Install-Package Plugin.Maui.MessagingCenter -Version 1.0.0-preview1
<PackageReference Include="Plugin.Maui.MessagingCenter" Version="1.0.0-preview1" />
paket add Plugin.Maui.MessagingCenter --version 1.0.0-preview1
#r "nuget: Plugin.Maui.MessagingCenter, 1.0.0-preview1"
// 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
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
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 | Versions 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. |
-
net8.0
- CommunityToolkit.Mvvm (>= 8.2.2)
- Microsoft.Maui.Controls (>= 8.0.40)
-
net8.0-android34.0
- CommunityToolkit.Mvvm (>= 8.2.2)
- Microsoft.Maui.Controls (>= 8.0.40)
-
net8.0-ios17.2
- CommunityToolkit.Mvvm (>= 8.2.2)
- Microsoft.Maui.Controls (>= 8.0.40)
-
net8.0-maccatalyst17.2
- CommunityToolkit.Mvvm (>= 8.2.2)
- Microsoft.Maui.Controls (>= 8.0.40)
-
net8.0-windows10.0.19041
- CommunityToolkit.Mvvm (>= 8.2.2)
- Microsoft.Maui.Controls (>= 8.0.40)
- System.Management (>= 7.0.0)
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 |