One of the common questions when writing Mvvm ViewModel code is "How do I show a MessageBox?"
There are a few answers around to this on StackOverflow - e.g. using an interaction helper or using a dialog service
However, for simple message boxes or for a simple message prompt, BrianChance has provided this open source plugin - https://github.com/brianchance/MvvmCross-UserInteraction
So now showing a message is as easy as:
This is awesome - and it happily earns Brian badge #2 - thanks Brian!
No comments:
Post a Comment