Created a UILabel
lbl_Username = new UILabel {
Text = "Username",
Font = UIFont.FromName (DrugHub.Constants.K_HELVETIC_BOLD, KFontSize12),
};
// Frame the label
lbl_Username.Frame = new RectangleF (40, 20, 100, 12);
View.addSubView(lbw_Username.Frame);
How to set frame width size "auto". Size to fit on text content.
currently using Username for label and set label.width = 100,
label.width need to set automatically adjust according to content inside the Label.Text.
@All Thanks In advance.