74 references to Entry
Microsoft.Maui.Controls (46)
Entry\Entry.cs (11)
12 public partial class Entry : InputView, ITextAlignmentElement, IEntryController, IElementConfiguration<Entry>, IEntry 17 public static readonly BindableProperty ReturnTypeProperty = BindableProperty.Create(nameof(ReturnType), typeof(ReturnType), typeof(Entry), ReturnType.Default); 22 public static readonly BindableProperty ReturnCommandProperty = BindableProperty.Create(nameof(ReturnCommand), typeof(ICommand), typeof(Entry), default(ICommand)); 27 public static readonly BindableProperty ReturnCommandParameterProperty = BindableProperty.Create(nameof(ReturnCommandParameter), typeof(object), typeof(Entry), default(object)); 38 public static readonly BindableProperty IsPasswordProperty = BindableProperty.Create(nameof(IsPassword), typeof(bool), typeof(Entry), default(bool)); 86 public static readonly BindableProperty ClearButtonVisibilityProperty = BindableProperty.Create(nameof(ClearButtonVisibility), typeof(ClearButtonVisibility), typeof(Entry), ClearButtonVisibility.Never); 88 readonly Lazy<PlatformConfigurationRegistry<Entry>> _platformConfigurationRegistry; 91 /// Creates a new <see cref="Entry"/> object with default values. 95 _platformConfigurationRegistry = new Lazy<PlatformConfigurationRegistry<Entry>>(() => new PlatformConfigurationRegistry<Entry>(this)); 190 public IPlatformElementConfiguration<T, Entry> On<T>() where T : IConfigPlatform
Entry\Entry.iOS.cs (6)
6 public static void MapCursorColor(IEntryHandler handler, Entry entry) 11 public static void MapAdjustsFontSizeToFitWidth(IEntryHandler handler, Entry entry) 16 public static void MapText(IEntryHandler handler, Entry entry) 22 public static void MapCursorColor(EntryHandler handler, Entry entry) => 25 public static void MapAdjustsFontSizeToFitWidth(EntryHandler handler, Entry entry) => 28 public static void MapText(EntryHandler handler, Entry entry) =>
Entry\Entry.Mapper.cs (4)
17 EntryHandler.Mapper.ReplaceMapping<Entry, IEntryHandler>(PlatformConfiguration.iOSSpecific.Entry.CursorColorProperty.PropertyName, MapCursorColor); 18 EntryHandler.Mapper.ReplaceMapping<Entry, IEntryHandler>(PlatformConfiguration.iOSSpecific.Entry.AdjustsFontSizeToFitWidthProperty.PropertyName, MapAdjustsFontSizeToFitWidth); 20 EntryHandler.Mapper.ReplaceMapping<Entry, IEntryHandler>(nameof(Text), MapText); 21 EntryHandler.Mapper.ReplaceMapping<Entry, IEntryHandler>(nameof(TextTransform), MapText);
Hosting\AppHostBuilderExtensions.cs (2)
73 handlersCollection.AddHandler<Entry, EntryHandler>(); 256 Entry.RemapForControls();
Platform\iOS\Extensions\TextExtensions.cs (2)
15 public static void UpdateCursorColor(this UITextField textField, Entry entry) 26 public static void UpdateAdjustsFontSizeToFitWidth(this UITextField textField, Entry entry)
PlatformConfiguration\AndroidSpecific\Entry.cs (4)
4 using FormsElement = Maui.Controls.Entry; 25 public static ImeFlags ImeOptions(this IPlatformElementConfiguration<Android, FormsElement> config) 31 public static IPlatformElementConfiguration<Android, FormsElement> SetImeOptions(this IPlatformElementConfiguration<Microsoft.Maui.Controls.PlatformConfiguration.Android, FormsElement> config, ImeFlags value)
PlatformConfiguration\iOSSpecific\Entry.cs (11)
7 using FormsElement = Maui.Controls.Entry; 33 public static bool AdjustsFontSizeToFitWidth(this IPlatformElementConfiguration<iOS, FormsElement> config) 39 public static IPlatformElementConfiguration<iOS, FormsElement> SetAdjustsFontSizeToFitWidth( 40 this IPlatformElementConfiguration<iOS, FormsElement> config, bool value) 47 public static IPlatformElementConfiguration<iOS, FormsElement> EnableAdjustsFontSizeToFitWidth( 48 this IPlatformElementConfiguration<iOS, FormsElement> config) 55 public static IPlatformElementConfiguration<iOS, FormsElement> DisableAdjustsFontSizeToFitWidth( 56 this IPlatformElementConfiguration<iOS, FormsElement> config) 75 public static Color GetCursorColor(this IPlatformElementConfiguration<iOS, FormsElement> config) 81 public static IPlatformElementConfiguration<iOS, FormsElement> SetCursorColor(this IPlatformElementConfiguration<iOS, FormsElement> config, Color value)
PlatformConfiguration\TizenSpecific\Entry.cs (5)
4 using FormsElement = Maui.Controls.Entry; 10 public static readonly BindableProperty FontWeightProperty = BindableProperty.Create("FontWeight", typeof(string), typeof(FormsElement), FontWeight.None); 25 public static string GetFontWeight(this IPlatformElementConfiguration<Tizen, FormsElement> config) 31 public static IPlatformElementConfiguration<Tizen, FormsElement> SetFontWeight(this IPlatformElementConfiguration<Tizen, FormsElement> config, string weight)
ViewExtensions.cs (1)
423 else if (element is Entry entry)
Microsoft.Maui.Controls.Compatibility (28)
iOS\Renderers\EntryRenderer.cs (28)
35 public abstract class EntryRendererBase<TControl> : ViewRenderer<Entry, TControl> 104 protected override void OnElementChanged(ElementChangedEventArgs<Entry> e) 133 _cursorPositionChangePending = Element.IsSet(Entry.CursorPositionProperty); 134 _selectionLengthChangePending = Element.IsSet(Entry.SelectionLengthProperty); 162 if (e.PropertyName == Entry.PlaceholderProperty.PropertyName || e.PropertyName == Entry.PlaceholderColorProperty.PropertyName) 164 else if (e.PropertyName == Entry.IsPasswordProperty.PropertyName) 166 else if (e.IsOneOf(Entry.TextProperty, Entry.TextTransformProperty)) 171 else if (e.PropertyName == Entry.TextColorProperty.PropertyName) 173 else if (e.PropertyName == Entry.CharacterSpacingProperty.PropertyName) 179 else if (e.PropertyName == Entry.IsTextPredictionEnabledProperty.PropertyName) 181 else if (e.PropertyName == Entry.HorizontalTextAlignmentProperty.PropertyName) 183 else if (e.PropertyName == Entry.VerticalTextAlignmentProperty.PropertyName) 185 else if (e.PropertyName == Entry.FontAttributesProperty.PropertyName) 187 else if (e.PropertyName == Entry.FontFamilyProperty.PropertyName) 189 else if (e.PropertyName == Entry.FontSizeProperty.PropertyName) 202 else if (e.PropertyName == Entry.ReturnTypeProperty.PropertyName) 204 else if (e.PropertyName == Entry.CursorPositionProperty.PropertyName) 206 else if (e.PropertyName == Entry.SelectionLengthProperty.PropertyName) 212 else if (e.PropertyName == Entry.ClearButtonVisibilityProperty.PropertyName) 232 ElementController.SetValueFromRenderer(Entry.TextProperty, Control.Text); 247 ElementController.SetValueFromRenderer(Entry.TextProperty, controlText); 322 if (Element.IsSet(Microsoft.Maui.Controls.Entry.IsTextPredictionEnabledProperty)) 485 if (Element.IsSet(Entry.SelectionLengthProperty)) 503 if (Element.IsSet(Entry.CursorPositionProperty)) 537 ElementController?.SetValueFromRenderer(Entry.CursorPositionProperty, start); 554 ElementController?.SetValueFromRenderer(Entry.SelectionLengthProperty, selectionLength);