public iOSEntryPageCS() { var entry = new Xamarin.Forms.Entry { Placeholder = "Enter text here to see the font size change", FontSize = 22 }; entry.On <iOS>().EnableAdjustsFontSizeToFitWidth(); entry.On <iOS>().SetCursorColor(Color.LimeGreen); var button = new Button { Text = "Toggle AdjustsFontSizeToFitWidth" }; button.Clicked += (sender, e) => { entry.On <iOS>().SetAdjustsFontSizeToFitWidth(!entry.On <iOS>().AdjustsFontSizeToFitWidth()); }; Title = "Entry FontSize and CursorColor"; Content = new StackLayout { Margin = new Thickness(20), Children = { entry, button } }; }
void OnSelectedIndexChanged(object sender, EventArgs e) { ImeFlags flag = (ImeFlags)Enum.Parse(typeof(ImeFlags), _picker.SelectedItem.ToString()); _entry.On <Android>().SetImeOptions(flag); _label.Text = $"ImeOptions: {_entry.On<Android>().ImeOptions()}"; }