상속: 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];
            };
        }
예제 #3
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];
			};

		}
예제 #4
0
 public SelectPositionPage(FeedbackViewModel feedbackVm)
 {
     _feedbackVm = feedbackVm;
 }