Пример #1
0
        /// <summary>
        /// Called by the TableView to actually build each cell.
        /// </summary>
        public override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath)
        {
            // declare vars
            NavItem navItem = navItems[indexPath.Section].Items[indexPath.Row];
            UIImage navIcon = null;

            var cell = tableView.DequeueReusableCell(cellIdentifier);

            if (cell == null)
            {
                cell     = new UITableViewCell(UITableViewCellStyle.Default, cellIdentifier);
                cell.Tag = Environment.TickCount;
            }

            // set the cell properties
            cell.TextLabel.Text = navItems[indexPath.Section].Items[indexPath.Row].Name;
            cell.Accessory      = UITableViewCellAccessory.DisclosureIndicator;

            // return the cell
            return(cell);
        }
Пример #2
0
 public RowClickedEventArgs(NavItem item) : base()
 {
     this.Item = item;
 }