public FamilySearchResultCell(UITableViewCellStyle style, string cellIdentifier) : base(style, cellIdentifier) { BackgroundColor = UIColor.Clear; FamilyView = new FamilySearchResultView( ); AddSubview(FamilyView); }
public FamilyResult(SearchFamilyPanel parent, Family family) { Parent = parent; Family = family; FamilyView = new FamilySearchResultView( ); parent.GetRootView( ).AddSubview(FamilyView); Button = new UIButton( ); Button.Layer.AnchorPoint = CGPoint.Empty; FamilyView.AddSubview(Button); Button.BackgroundColor = UIColor.Clear; Button.TouchUpInside += (object sender, EventArgs e) => { // don't process the touch if there's no valid family if (Family != null) { Parent.FamilySelected(Family); } }; }
public FamilySearchResultCell( UITableViewCellStyle style, string cellIdentifier ) : base(style, cellIdentifier) { BackgroundColor = UIColor.Clear; FamilyView = new FamilySearchResultView( ); AddSubview( FamilyView ); }