using System; namespace Xamarin.Forms.PlatformConfiguration.iOSSpecific { using FormsElement = Forms.Entry; public static class Entry { public static readonly BindableProperty AdjustsFontSizeToFitWidthProperty = BindableProperty.Create("AdjustsFontSizeToFitWidth", typeof(bool), typeof(Entry), false); public static bool GetAdjustsFontSizeToFitWidth(BindableObject element) { return (bool)element.GetValue(AdjustsFontSizeToFitWidthProperty); } public static void SetAdjustsFontSizeToFitWidth(BindableObject element, bool value) { element.SetValue(AdjustsFontSizeToFitWidthProperty, value); } public static bool AdjustsFontSizeToFitWidth(this IPlatformElementConfiguration config) { return GetAdjustsFontSizeToFitWidth(config.Element); } public static IPlatformElementConfiguration SetAdjustsFontSizeToFitWidth(this IPlatformElementConfiguration config, bool value) { SetAdjustsFontSizeToFitWidth(config.Element, value); return config; } public static IPlatformElementConfiguration EnableAdjustsFontSizeToFitWidth(this IPlatformElementConfiguration config) { SetAdjustsFontSizeToFitWidth(config.Element, true); return config; } public static IPlatformElementConfiguration DisableAdjustsFontSizeToFitWidth(this IPlatformElementConfiguration config) { SetAdjustsFontSizeToFitWidth(config.Element, false); return config; } } }