public class CustomRenderer : SfComboBoxRenderer { protected override void OnElementChanged(ElementChangedEventArgs<SfComboBox> e) { base.OnElementChanged(e); Control.TextField.TextAlignment = UIKit.UITextAlignment.Center; } } |
|
CustomRenderer.cs:
public class CustomRenderer : SfComboBoxRenderer {
public CustomRenderer(Context context) : base(context)
{
}
protected override void OnElementChanged(ElementChangedEventArgs<SfComboBox> e)
{
base.OnElementChanged(e);
Control.GetAutoEditText().Gravity = GravityFlags.Center;
}
} |
Thanks for sharing a great article.
You are providing wonderful information, it is very useful to us.
Keep posting like this informative articles.
Thank you.
Get to know about : LSM99 แทงบอลออนไลน์