I am binding a dependency property to textboxex in WPF. The property is a string that has some values separated by \'/\' (example: \"1/2/3/4\" ). I need to bind individual v
In most cases, you can safely make ConvertBack
just throw NotImplementedException
.
Indeed, you just haven't got enough information to recreate the source value from its part!
If you really need the back conversion (e.g., if you use two-direction binding), I would split the property into 3 strings in the view model (the class used in DataContext
), and bind to them separately.