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

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

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

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