コード例 #1
0
 public MaterialTextField(IMaterialEntryRenderer element, IFontElement fontElement)
 {
     VisualElement.VerifyVisualFlagEnabled();
     ClearButtonMode            = UITextFieldViewMode.Never;
     _activeTextinputController = new MTextInputControllerFilled(this);
     TextInsetsMode             = TextInputTextInsetsMode.IfContent;
     _typographyScheme          = CreateTypographyScheme();
     _colorScheme = (SemanticColorScheme)CreateColorScheme();
     ApplyTypographyScheme(fontElement);
     ApplyTheme(element);
 }
コード例 #2
0
        protected override UITextField CreateNativeControl()
        {
            var field = new MTextField();

            Control = field;
            field.ClearButtonMode      = UITextFieldViewMode.Never;
            _activeTextinputController = new MTextInputControllerFilled(field);

            ApplyTypographyScheme();
            ApplyTheme();

            return(field);
        }