public EmptyDatasetView(string title, string detail, UIImage image, UIView customView = null) { TitleLabel = new UILabel(); DetailLabel = new UILabel(); ImageView = new UIImageView(); CustomView = new UIView(); TitleLabel.Text = title; DetailLabel.Text = detail; ImageView.Image = image; CustomView = customView; }