예제 #1
0
 //We need this default constructor by definition
 public AIDetailsPage()
 {
     viewModel      = new WeatherStationDetailViewModel();
     BindingContext = viewModel;
     Title          = "AI Page";
     InitializeComponent();
 }
예제 #2
0
        //When the page is connected we simply bind the proper view model class
        //This View model will represent a list item in detail
        public WeatherStationDetailPage(WeatherStationDetailViewModel passedInViewModel)
        {
            InitializeComponent();
            DetailWeatherSets.ItemsSource = passedInViewModel.RgSets;
            BindingContext = this.viewModel = passedInViewModel;

            //Change the selected index
            dateDropDown.SelectedIndex = 0;
        }
예제 #3
0
        //When the page is connected we simply bind the proper view model class
        //This View model will represent a list item in detail
        public AIDetailsPage(WeatherStationDetailViewModel passedInViewModel)
        {
            InitializeComponent();
            DetailWeatherSets.ItemsSource = passedInViewModel.RgSets;
            BindingContext = this.viewModel = passedInViewModel;

            Title = "AI Info Station: " + viewModel.Item.StationName;
            //Change the selected index
            this.dateDropDown.SelectedIndex = 0;
        }
예제 #4
0
 //We need this default constructor by definition
 public WeatherStationDetailPage()
 {
     InitializeComponent();
     viewModel      = new WeatherStationDetailViewModel();
     BindingContext = viewModel;
 }