silverlight - Disable ConvertBack() on TwoWay binding when using UpdateSource() -
i maintaining silverlight app, , had resort manually rebind textboxes' text.
so use:
mytextbox.getbindingexpression(textbox.textproperty).updatesource();
problem is, textbox needs have twoway binding, set it. control uses unorthodox ivalueconverter, should never convertback, since got twoway binding... gets called.
is there way disable convertback(), , yet let convert() job?
thanks ;)
you should use converter handle both directions...
subclass existing converter , have convertback hide existing 1 (and return harmless) while convert calls base.convert.
Comments
Post a Comment