Let me see if I understand correctly, you have something like this:
<SomeControl x:Name="MyControl" MyProp="{Binding Something, Mode="OneWayToSource"}".../>
Then, in code-behind, you try to set MyProp
to some other value
MyControl.MyProp = SomethingElse;
And now changes to MyProp
are not updating Something
because binding is removed. Right?
In that case, and if you work under .NET 4.0 or above, you can use SetCurrent
:
MyControl.SetCurrent(MyPropProperty, SomethingElse);