Exemplo n.º 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];

            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);
        }
 public RowClickedEventArgs(NavItem item) : base()
 {
     Item = item;
 }
		public RowClickedEventArgs (NavItem item) : base ()
		{
			Item = item;
		}