Skip to content

Plugin.Maui.MessagingCenter provides a drop-in compatible replacement for the deprecated .NET MAUI MessagingCenter.

License

Notifications You must be signed in to change notification settings

jfversluis/Plugin.Maui.MessagingCenter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Plugin.Maui.MessagingCenter

Plugin.Maui.MessagingCenter provides a drop-in compatible replacement for the .NET MAUI MessagingCenter which has been deprecated and will be removed in the near future. This is a wrapper library that uses the method signatures of the .NET MAUI MessagingCenter but under the hood uses the MVVM Toolkit WeakReferenceMessenger which is known for its superb performance!

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

About

Plugin.Maui.MessagingCenter provides a drop-in compatible replacement for the deprecated .NET MAUI MessagingCenter.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Languages