public void SetKeyboardType(PasswordBox view, string keyboardType) { var inputScope = new InputScope(); var nameValue = keyboardType != null ? InputScopeHelpers.FromStringForPasswordBox(keyboardType) : InputScopeNameValue.Password; inputScope.Names.Add(new InputScopeName(nameValue)); view.InputScope = inputScope; }
public void SetKeyboardType(ReactTextBox view, string keyboardType) { view.InputScope = null; if (keyboardType != null) { var inputScope = new InputScope(); inputScope.Names.Add( new InputScopeName( InputScopeHelpers.FromString(keyboardType))); view.InputScope = inputScope; } }