public MilestoneTableViewCell(IntPtr handle) : base(handle) { var frame = Frame = new CGRect(0, 0, 320f, 80); AutosizesSubviews = true; ContentView.AutosizesSubviews = true; _milestoneView = new MilestoneView(); _milestoneView.Frame = frame; _milestoneView.AutoresizingMask = UIViewAutoresizing.FlexibleWidth | UIViewAutoresizing.FlexibleHeight; ContentView.Add(_milestoneView); this.WhenAnyValue(x => x.ViewModel) .Where(x => x != null) .Subscribe(x => _milestoneView.Init(x.Title, x.OpenIssues, x.ClosedIssues, x.DueDate)); }
public void Init(string title, int openIssues, int closedIssues, DateTimeOffset?dueDate) { _milestoneView.Init(title, openIssues, closedIssues, dueDate); }