コード例 #1
0
ファイル: EditorRenderer.cs プロジェクト: sung-su/maui
        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);
        }