Code Monkey home page Code Monkey logo

Comments (6)

Alex141 avatar Alex141 commented on August 15, 2024

Hi, again, it is behavior not of "CalcBinding" but of "standart Binding". If you switch to usual Binding you will receive exactly same exception.

I saw wpf sources in place where ReadOnly property check is doing. So the answer is: no, you cannot do with this anything. Check on readonly property is doing in a deap WPF callstask, where there is all informataion about concrete property. When I create new Binding expression, I havent such important info about what source and properties I binding, that information doesn't exist. So I cannot found out what property I have to bind to and its type

from calcbinding.

earthengine avatar earthengine commented on August 15, 2024

I have the same problem. It seems that even when the standard binding happily accept the read only property, CalcBinding is still not accepting it unless have "Mode=OneWay" set.

Especially, when binding Visibility, WPF standard binding will accept a read only property happily, but with CalcBinding we have to add "Mode=OneWay" if it is read only.

from calcbinding.

maurosampietro avatar maurosampietro commented on August 15, 2024

If I switch to usual Binding i'm not forced to explicitly set "Mode=OneWay" and i don't get any exception.

from calcbinding.

Alex141 avatar Alex141 commented on August 15, 2024

Hi guys, it's very strange, because after first comment I wrote an example to check that is is behavior of standart binding. Ok, I repeat my check. By the way, what version of .net framework you use? May be that behavior depends on it.

from calcbinding.

Alex141 avatar Alex141 commented on August 15, 2024

Thank you guys, it's really bug, CalcBinding sets Mode = BindingMode.TwoWay by default but standart binding sets Mode = BindingMode.Default by default. In my previously proove example I used TextBox.Text property which has Mode = BindingMode.TwoWay by default, thus I couldn't reproduce your issue. After switch to Label.Content which has BindingMode.OneWay I reproduced problem.

from calcbinding.

Alex141 avatar Alex141 commented on August 15, 2024

version 2.2.5.2 is released

from calcbinding.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.