MVVMCross User Interaction Patterns using Interaction Request Objects? -


in prims, there 2 common approaches implementing user interactions in mvvm pattern. http://msdn.microsoft.com/en-us/library/gg405494(v=pandp.40).aspx#sec10 1. implement service can used view model initiate interaction user 2. uses events raised view model express intent interact user, along components in view bound these events , manage visual aspects of interaction.

i think mvxpresentationhint should first approach. how support second approach?

i don't believe has implemented formal documented common cross-platform dialog interaction patterns between viewmodel , view @ stage.

i have used several mechanisms including :

  • using messenger viewmodel send general 'ask y/n' request , view send 'answer y/n' response.

  • using custom presenter override showviewmodel behaviour popup dialog

both of these approaches worked well, testable, used small amount of 'code behind', provided easy customization , used weak references - didn't cause memory issues in ios. in general, faced similar ux requirements in future think i'd consider messenger approach first choice - that's personal design preference - not 'best practice' essay in prism.


Comments