Forum Xamarin.Forms

How can i pass datas from Page1View to Page2Viewmodel

LeeGwangYongLeeGwangYong USMember ✭✭

Hi. sorry.. i am not good at English

I have Page1View, Page1ViewModel, Page2View, Page2ViewModel
I can pass some datas Page1View -> Page2View

var masterDetail = App.Current.MainPage as MasterDetailPage;
var nav = new NavigationPage();
var nextPage = new Page2View();
var selected = e.RowData as People;
nextPage.BindingContext = selected;
masterDetail.Detail = new NavigationPage(nextPage);

But, I want to pass datas Page1View -> Page2ViewModel and using Page2ViewModel's data at Page2View
Please Help me :wink:

Best Answer


Sign In or Register to comment.