//public float MeasureHeight(UITableView tableView, EquiplistRowData rowData)
        //{
        //  UpdateCell(rowData);
        //Layout.Measure(tableView.Bounds.Width - 10 - 1, float.MaxValue);
        //return Layout.GetMeasuredSize().Height;
        //}

        public void UpdateCell(EquiplistRowData rowData)
        {
            equipmentnum.Text = rowData.EquipmentNumber.ToString();
            equipdescri.Text  = rowData.EquipmentDescription.ToString();
            imageview.Image   = rowData.Equipmentphoto;
            Euiphrs.Text      = "Equip Hrs 0.0";
            longitu.Text      = "Longitude 0.0";
        }
Exemple #2
0
        //EquipmentListTableItem protoType = new EquipmentListTableItem("TableCell");

        //public override float GetHeightForRow(UITableView tableView, NSIndexPath indexPath)
        //{
        //  return protoType.MeasureHeight(tableView, Data[indexPath.Row]);
        //}

        public override void RowSelected(UITableView tableView, NSIndexPath indexPath)
        {
            EquiplistRowData selectedItem = Data[indexPath.Row];

            // normal iOS behaviour is to remove the blue highlight
            tableView.DeselectRow(indexPath, true);

            if (OnRowSelected != null)
            {
                OnRowSelected(this, new RowSelectedEventArgs(tableView, indexPath));
            }
        }