Closed ghost closed 1 year ago
I have a similar issue in my UWP app as you did. Have you resolved it?
I have a similar issue in my UWP app as you did. Have you resolved it?
Yes.
The ReceiverViewModel constructor:
public UserReceiverViewModel() {
IsActive = true;
}
Thank you very much for your answer. It worked perfectly and solved my problem from yesterday. While looking for a solution, I also found other methods that might be helpful to you. On YouTube, https://www.youtube.com/watch?v=vD17OetzGXc, the author uses WeakReferenceMessenger.
Thank you very much for your answer. It worked perfectly and solved my problem from yesterday. While looking for a solution, I also found other methods that might be helpful to you. On YouTube, https://www.youtube.com/watch?v=vD17OetzGXc, the author uses WeakReferenceMessenger.
Yes it is probably better :)
Thanks
Had there been any update on how to receive messenger? I had make the "Sending Messages" example in winui 3.
I can show TextBlock Text="{x:Bind ViewModel.SenderViewModel.Username, Mode=OneWay}"/>
But not from the receiver: TextBlock Text="{x:Bind ViewModel.ReceiverViewModel.Username, Mode=OneWay}"/>