Exemple #1
0
        public static void MapText(IEntryHandler handler, IEntry entry)
        {
            handler.PlatformView?.UpdateText(entry);

            // Any text update requires that we update any attributed string formatting
            MapFormatting(handler, entry);
        }
 public static void MapClearButtonVisibility(IEntryHandler handler, IEntry entry)
 {
     if (handler is EntryHandler platformHandler)
     {
         handler.PlatformView?.UpdateClearButtonVisibility(entry, platformHandler.GetClearButtonDrawable);
     }
 }
 public static void MapPlaceholderColor(IEntryHandler handler, IEntry entry)
 {
     if (handler is EntryHandler platformHandler)
     {
         handler.PlatformView?.UpdatePlaceholderColor(entry);
     }
 }
Exemple #4
0
 public static void MapFormatting(IEntryHandler handler, IEntry entry)
 {
     // Update all of the attributed text formatting properties
     // Setting any of those may have removed text alignment settings,
     // so we need to make sure those are applied, too
     handler.PlatformView?.UpdateMaxLength(entry);
     handler.PlatformView?.UpdateHorizontalTextAlignment(entry);
 }
        public IHttpActionResult CaptureLead(AllFieldCapture lead, string product)
        {
            //NameValueCollection nvc = form.ReadAsNameValueCollection();

            _entryHandler = new EntryHandler("mortgage");
            _entryHandler.CaptureLead(lead);

            return Ok();
        }
 public static void MapSelectionLength(IEntryHandler handler, IEntry entry) =>
 handler.PlatformView?.UpdateSelectionLength(entry);
 public static void MapCharacterSpacing(IEntryHandler handler, IEntry entry) =>
 handler.PlatformView?.UpdateCharacterSpacing(entry);
 public static void MapCursorPosition(IEntryHandler handler, IEntry entry) =>
 handler.PlatformView?.UpdateCursorPosition(entry);
Exemple #9
0
        public static void MapFont(IEntryHandler handler, IEntry entry)
        {
            var fontManager = handler.GetRequiredService <IFontManager>();

            handler.PlatformView?.UpdateFont(entry, fontManager);
        }
Exemple #10
0
 public static void MapReturnType(IEntryHandler handler, IEntry entry) =>
 handler.PlatformView?.UpdateReturnType(entry);
Exemple #11
0
 public static void MapTextColor(IEntryHandler handler, IEntry entry) =>
 handler.PlatformView?.UpdateTextColor(entry);
Exemple #12
0
 public static void MapHorizontalTextAlignment(IEntryHandler handler, IEntry entry) =>
 handler.PlatformView?.UpdateHorizontalTextAlignment(entry);
Exemple #13
0
 public static void MapCursorPosition(IEntryHandler handler, IEntry entry)
 {
 }
Exemple #14
0
 public static void MapIsTextPredictionEnabled(IEntryHandler handler, IEntry entry) =>
 handler.PlatformView?.UpdateIsTextPredictionEnabled(entry);
Exemple #15
0
 public static void MapCharacterSpacing(IEntryHandler handler, IEntry entry)
 {
 }
Exemple #16
0
 public static void MapBackground(IEntryHandler handler, IEntry entry)
 {
     handler.UpdateValue(nameof(handler.ContainerView));
     handler.ToPlatform()?.UpdateBackground(entry);
 }
Exemple #17
0
 public static void MapCursorPosition(IEntryHandler handler, IEntry entry)
 {
     handler.PlatformView?.UpdateSelectionLength(entry);
 }
Exemple #18
0
 public static void MapSelectionLength(IEntryHandler handler, IEntry entry)
 {
 }
Exemple #19
0
 public static void MapClearButtonVisibility(IEntryHandler handler, IEntry entry)
 {
     handler.PlatformView?.UpdateClearButtonVisibility(entry);
 }
Exemple #20
0
 public static void MapClearButtonVisibility(IEntryHandler handler, IEntry entry)
 {
 }
Exemple #21
0
 public static void MapPlaceholder(IEntryHandler handler, IEntry entry) =>
 handler.PlatformView?.UpdatePlaceholder(entry);
Exemple #22
0
 public static void MapBackground(IEntryHandler handler, IEntry entry) =>
 handler.PlatformView?.UpdateBackground(entry);
Exemple #23
0
 public static void MapReturnType(IEntryHandler handler, IEntry entry)
 {
 }
Exemple #24
0
 public static void MapIsPassword(IEntryHandler handler, IEntry entry) =>
 handler.PlatformView?.UpdateIsPassword(entry);
Exemple #25
0
 public static void MapKeyboard(IEntryHandler handler, IEntry entry) =>
 handler.PlatformView?.UpdateKeyboard(entry);
Exemple #26
0
 public static void MapVerticalTextAlignment(IEntryHandler handler, IEntry entry) =>
 handler?.PlatformView?.UpdateVerticalTextAlignment(entry);
Exemple #27
0
 public static void MapText(IEntryHandler handler, IEntry entry)
 {
 }
Exemple #28
0
 public static void MapMaxLength(IEntryHandler handler, IEntry entry) =>
 handler.PlatformView?.UpdateMaxLength(entry);
Exemple #29
0
 public static void MapFont(IEntryHandler handler, IEntry entry) =>
 handler.PlatformView?.UpdateFont(entry, handler.GetRequiredService <IFontManager>());
Exemple #30
0
 public static void MapIsReadOnly(IEntryHandler handler, IEntry entry) =>
 handler.PlatformView?.UpdateIsReadOnly(entry);
Exemple #31
0
 public static void MapKeyboard(IEntryHandler handler, IEntry entry)
 {
 }