예제 #1
0
        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));
        }
예제 #2
0
 public void Init(string title, int openIssues, int closedIssues, DateTimeOffset?dueDate)
 {
     _milestoneView.Init(title, openIssues, closedIssues, dueDate);
 }