Sunday, November 04, 2012

Combining TinyMessenger with MvvmCross to provide "StartViewModelForResult" type behavior


A sample from @gshackles

Basically this pattern allows you to write a flow like:

- navigate from a parent viewModel to a child ViewModel
- the child viewModel collects some user input
- the user then presses OK
- a message is sent back from the child ViewModel  to the parent
- the child view then closes

We think there might be one very minor issues in this pattern - to do with some tombstoning edge cases - but for most apps this should work really well - and it has a nice test harness too!

No comments:

Post a Comment