public FeedbackPage() { InitializeComponent(); BindingContext = viewModel = new FeedbackViewModel(this); //PickerRating.SelectedIndex = 10; PickerServiceType.SelectedIndex = 0; ButtonSelectLocation.Clicked += async(sender, e) => { //var feedback = new Feedback(); var selectpos = new SelectPositionPage(viewModel); //selectpos.BindingContext = feedback; await Navigation.PushAsync(selectpos); //var a=Navigation.NavigationStack[0]; }; /* * PickerStore.SelectedIndexChanged += (sender, e) => * { * viewModel.StoreName = PickerStore.Items[PickerStore.SelectedIndex]; * }; */ }
public FeedbackPage() { InitializeComponent(); BindingContext = viewModel = new FeedbackViewModel(this); PickerRating.SelectedIndex = 10; PickerServiceType.SelectedIndex = 0; PickerStore.SelectedIndexChanged += (sender, e) => { viewModel.StoreName = PickerStore.Items[PickerStore.SelectedIndex]; }; }
public FeedbackPage () { InitializeComponent (); BindingContext = viewModel = new FeedbackViewModel (this); PickerRating.SelectedIndex = 10; PickerServiceType.SelectedIndex = 0; PickerStore.SelectedIndexChanged += (sender, e) => { viewModel.StoreName = PickerStore.Items[PickerStore.SelectedIndex]; }; }
public SelectPositionPage(FeedbackViewModel feedbackVm) { _feedbackVm = feedbackVm; }