Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

Issues with MessagingCenter

$
0
0

I've been having some strange problems with MessagingCenter. Sometimes calling MessagingCenter.Send() does not return.

An example in my code is:

Tiles = td.TileLayoutInstances.Select(x => new Tile(x)).OrderBy(x => x.SortOrder).ToList();
SubscribeToTiles(Tiles);
Debug.WriteLine("Sending QrLoaded");
MessagingCenter.Send<object, bool>(new object(), "QrCodeLoaded", true);
Debug.WriteLine("Sent QrLoaded");

"Sent QrLoaded" never occurs :/

Any tips would be welcome :)


Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>