private View GetCountdownRow(int position, CountdownViewItem countdownViewItem, View countdownRow) { View view = countdownRow ?? LayoutInflater.Inflate(Resource.Layout.CountdownRow, null); var viewHolder = view.Tag as CountdownViewHolder ?? CreateCountdownViewHolder(view); view.FindViewById <TextView>(Resource.Id.CountdownText).Text = countdownViewItem.RemainingTimeString; viewHolder.CountdownBinding = this.SetBinding(() => Vm.Countdowns.First(c => c.Equals(countdownViewItem)).RemainingTimeString, () => view.FindViewById <TextView>(Resource.Id.CountdownText).Text); view.Tag = viewHolder; return(view); }
internal void Configure(CountdownViewItem countdownViewItem) { _countdownViewItem = countdownViewItem; _timerBinding = this.SetBinding(() => _countdownViewItem.RemainingTimeString, () => RemainingTimeLabel.Text); }
private void BindCellDelegate(UITableViewCell cell, CountdownViewItem countdownViewItem, NSIndexPath path) { var bindableCell = (CustomCell)cell; bindableCell.Configure(countdownViewItem); }