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
Post a Comment