I have a TextBox field to get a Date and Time typed by the user.
I don’t want him to have to type / separators for date and : for time.
This is a simple and common case in any system.
I think I understand what you’re trying to do. My code may be a bit verbose, but this is the quickest way I could think of right now. Here it is in action: