// Static "Constructor" to internalize loading from xib public static MessageHeader View(RectangleF frame) { MessageHeader view = new MessageHeader(frame); var views = NSBundle.MainBundle.LoadNib("MessageHeader", view, null); view = Runtime.GetNSObject(views.ValueAt(0)) as MessageHeader; view.Initialize (); return view; }
private void Initialize() { SelectionStyle = UITableViewCellSelectionStyle.None; _header = MessageHeader.View (Header.Frame); SetHeader (_header); }