Unable to use WeakReferenceMessenger in MAUI .NET 8 #21795
IXChinmayD
started this conversation in
Upgrading from Xamarin
Replies: 1 comment 3 replies
-
You can use From my understanding, if you have the same message for both methods then you can add some sort of property/check to your class object. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have used the concept of MessagingCenter extensively in the Xamarin Forms application to perform some actions based on the data change. Now I am migrating to MAUI .NET 8. I have a code snippet below where classes Page1, Page2, and Page3 can be ContentPage or ContentView. I am not able to implement the code below using the WeakReferenceMessenger concept.
How to identify while subscribing only Method1() in Trigger1 should run if I have triggered a send request for Trigger1?
Is there any sample project for the same for WeakReferenceMessenger?
I am unable to Pass Trigger1 and Trigger2 messages in WeakReferenceMessenger. How can I achieve the same result using WeakReferenceMessenger?
Beta Was this translation helpful? Give feedback.
All reactions