Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2370
Unbound Field in 14.2
posted

In the recent update to 14.2, there are now some compiler warnings about UnboundField being deprecated.  It says to 'Use Field with BindingType set to Unbound or UseAlternateBinding instead".

I have tried both without success.  

My original code had bindings set up like this:

Field field = new UnboundField { BindingMode = BindingMode.TwoWay, BindingPath = new PropertyPath(MyPropertyName) };

What is the new syntax for how my old code works?

From what I see in the compiler warnings, this should be the equivalent:

Field field = new Field { BindingType = BindingType.UseAlternateBinding, AlternateBinding = new Binding(MyPropertyName) };

But it does not function properly.

Thanks,

Jon

Parents Reply Children