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); }
protected override UITextField CreateNativeControl() { var field = new MTextField(); Control = field; field.ClearButtonMode = UITextFieldViewMode.Never; _activeTextinputController = new MTextInputControllerFilled(field); ApplyTypographyScheme(); ApplyTheme(); return(field); }