I created custom MvxTableViewCell, placed all design layouts in .xib file:
public partial class FxTransactionCell: MvxTableViewCell
{
public static readonly NSString Key = new NSString("FxTransactionCell");
public static readonly UINib Nib = UINib.FromName(Key, NSBundle.MainBundle);
static FxTransactionCell()
{
}
protected FxTransactionCell(IntPtr handle): base(handle)
{
// Note: this .ctor should not contain any initialization logic.
}
}
All samples I've seen placed initialization/binding logic into (IntPtr) constructor, but note that comment placed there by VS. I think this constructor can not hold any init logic, because my custom UI elements not yet created and all my UILabels, UIButtons (which layouts in .xib file) are null inside this constructor. So, where I should place my init/bindings logic then?