Inheritance: ViewModelBase
示例#1
0
        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];
             * };
             */
        }
示例#2
0
        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];
			};

		}
示例#4
0
 public SelectPositionPage(FeedbackViewModel feedbackVm)
 {
     _feedbackVm = feedbackVm;
 }