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 -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -