title: Can you replace characters in a textbox as you type?
body: <p>We are looking for a way to make a textbox replace certain characters as a person types in it.  Note, we are focusing on the control itself, not bindings, viewmodels, etc.  For the sake of this question, assume there is a window with a textbox sitting in the middle of it and nothing else.  No data, no viewmodel, no bindings, etc.</p>
  
  <p>I've updated the question because it seems all the answers below keep focusing on bindings, dependency properties, coersion, etc.  While I appreciate the suggestions, as I stated above, our control is not a bound control so they aren't applicable.</p>
  
  <p>Now while I could explain the reasons for that, that would make this post about five times longer as it's actually a complex and advanced use-case, but that has nothing to do with the question itself, which is why I've simplified our scenario down to focus on the specific question we're trying to resolve, which is about a textbox control, or possibly a subclass of one replacing characters as you type.</p>
  
  <p>Hope that makes more sense now.</p>