Example #1
0
        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);
        }
Example #2
0
 internal void Configure(CountdownViewItem countdownViewItem)
 {
     _countdownViewItem = countdownViewItem;
     _timerBinding      = this.SetBinding(() => _countdownViewItem.RemainingTimeString, () => RemainingTimeLabel.Text);
 }
Example #3
0
        private void BindCellDelegate(UITableViewCell cell, CountdownViewItem countdownViewItem, NSIndexPath path)
        {
            var bindableCell = (CustomCell)cell;

            bindableCell.Configure(countdownViewItem);
        }