private void UpdateInputType() { this.Control.EditText.InputType = KeyboardHelper.GetInputType(this.Element.Keyboard); if (this.Element.IsPassword && (this.Control.EditText.InputType & InputTypes.ClassText) == InputTypes.ClassText) { this.Control.EditText.InputType = this.Control.EditText.InputType | InputTypes.TextVariationPassword; } if (!this.Element.IsPassword || (this.Control.EditText.InputType & InputTypes.ClassNumber) != InputTypes.ClassNumber) { return; } this.Control.EditText.InputType = this.Control.EditText.InputType | InputTypes.DatetimeVariationDate; }