ValueFormattingConverter.Convert
is called with the XmlElement
. ConvertBack
is never called. Why? Is there some obligation to pass bind
The binding direction to source won't work with a {Binding Path=.}
. This is because there is no bound property, but just the binding source object.
Hence there will never be a source update, and the ConvertBack
method is never called, because that would mean to replace the source object.
In order to make your code work, you would have to bind to some property:
<TextBox Text="{Binding Path=SomeElement, ...}"/>