Beispiel #1
0
		public InfoStationView (Station station)
		{
			viewModel = new InfoStationViewModel (station);
			Title = viewModel.Title;
			sourceTable = new GroupTableSource (TableView);
			sourceTable.DataSource = viewModel.Items;
			sourceTable.CreateCell = CreatorCell;
			TableView.Source = sourceTable;
		}
        public void AnnotationSelected(MKAnnotationView annotationView)
        {
            // first select (center) the annotation)
            MapView.SetCenterCoordinate(annotationView.Annotation.Coordinate, true);

            // now determine where it is in the group list
            int rowIndex = MapAnnotationToTableRow(annotationView.Annotation);

            // and select that row
            GroupTableSource.SetSelectedRow(GroupFinderTableView, rowIndex);
        }