Xamarin: Set UITextField Height

c#, ios, uitextfield, xamarin, xamarin.ios

Solution

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;

Problem

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?

Original source

Related problems