Пример #1
0
        string MaxLengthFilter(ElmSharp.Entry entry, string s)
        {
            if (entry.Text.Length < Element.MaxLength)
            {
                return(s);
            }

            return(null);
        }
Пример #2
0
        protected override EEntry CreateNativeControl()
        {
            var entry = new EEntry(Forms.NativeParent)
            {
                IsSingleLine = false,
            };

            return(entry);
        }
Пример #3
0
 string SetFilter(ElmSharp.Entry entry, string text)
 {
     if (!first && entry.Text.Length == 2)
     {
         return("");
     }
     else
     {
         first = false;
         return(text);
     }
 }
Пример #4
0
        string?MaxLengthFilter(EEntry entry, string s)
        {
            if (VirtualView == null || PlatformView == null)
            {
                return(null);
            }

            if (entry.Text.Length < VirtualView.MaxLength)
            {
                return(s);
            }

            return(null);
        }