Hello timb
Here is my solution to your question:
- Create your textbox and create a binding to its text
- Create an OnTextChanged on your textbox and create a temp string and get the length of your text and if the text length is for example less than 5 then add this text to the temp string and if it is bigger than for example 5 then get the temp string and use it to set the value of the textbox.