How do I change the height of a text field in Xamarin iOS?
In native iOS, you can set the height on the UITextField outlet manually, like in this answer, but in Xamarin, it doesn't allow you to change that property. Is this possible in Xamarin using an actual UITextField? If not, what's the nicest hack to get something similar?
RectangleF in C# is a struct so you will need to make a copy of it, change the value and set it back to the control.
var f = textField.Frame;
f.Height = 100f;
textField.Frame = f;
Have you tried setting the frame like this?
textField.Frame = new RectangleF (x, y, width, height);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With