I used a similar approach, but embedded parsing in a control, and dealt with formatting on the control itself (it is a constrained TextBox with additional properties for numerical/DateTime/TimeSpan values), so that I could retain consistent values on the VM (I don't use validation, tho... If I have to deal with it, I suppose I would find a way to provide validation on the internal Text property).
↧