How to update from Prism to Mvvmlight ?

Jan 13, 2015 at 2:15 PM
Edited Jan 13, 2015 at 2:20 PM
Hi,

I am trying to update my previous Silverlight Prism project to Xamarin with MVVMLight support. in previous project, the ViewModel class normally declare like this.

public class FIBMainViewModel : NotificationObject, IPartImportsSatisfiedNotification, INavigationAware
{
//*
   public void OnNavigatedFrom(NavigationContext navigationContext)
    {
        //todo something when leave from the page
    }

    public void OnNavigatedTo(NavigationContext navigationContext)
    {
        // todo something when navigate to this view
    }
}

My question is:
How to update OnNavigatedFrom and OnNavigatedTo method in MvvmLight ?

I appreciate any of your help and sample code.

Many thanks

FENG