public override void SetData(CellData cellData) { var detail = cellData.Get(DataKeys.Detail); var auxiliary = cellData.Get(DataKeys.Auxiliary); TextField.Text = detail; PlaceholderLabel.Hidden = TextField.HasText; PlaceholderLabel.Text = string.IsNullOrEmpty(detail) ? auxiliary : null; }
public override void SetData(CellData cellData) { var title = cellData.Get(DataKeys.Title); var detail = cellData.Get(DataKeys.Detail); var auxiliary = cellData.Get(DataKeys.Auxiliary); if (TextLabel != null) TextLabel.Text = title; if (DetailTextLabel != null) DetailTextLabel.Text = detail; if (initialsLabel != null) initialsLabel.Text = auxiliary; }
public override void SetData(CellData cellData) { var title = cellData.Get(DataKeys.Title); var detail = cellData.Get(DataKeys.Detail); var auxiliary = cellData.Get(DataKeys.Auxiliary); TitleLabel.Text = string.IsNullOrEmpty(detail) ? detail : title; DetailTextLabel.Text = detail; PlaceholderLabel.Text = string.IsNullOrEmpty(detail) ? auxiliary : null; }