android - linking ViewModel to view using MvvmCross -


i using mvvmcross framework in xamarin android application , viewmodel inheriting mvxactivity , view inhering fragmentactivity . how link viewmodel view ?

you can use generics connect viewmodel view.

public myactivity : mvxactivity<myviewmodel> {      //do stuff in here. setting content } 

a full example available here: https://github.com/mvvmcross/mvvmcross-androidsupport/tree/master/samples


Comments

Popular posts from this blog

javascript - How to process users in one specific order using map o each function? -

java - Two interface have same method name with different return type -

javascript - Linking from page A to a specific iframe on page B -