GithubHelp home page GithubHelp logo

Comments (5)

georgejecook avatar georgejecook commented on May 30, 2024

Can you please paste your cell here?

I'm interested into why your bindings don't update. There is nothing special here - the setupcell call is a helper for setting values off the back of BindingContext. If you wanted live bindings, you should just be doing to set it to A.a.. presuming that it's a bindable property on your model.

Please paste up the cell, and if possibe the model you're binding too and I'll play around. thanks.

from twintechsformslib.

ncovone avatar ncovone commented on May 30, 2024

My mistake. The bindings were not live because they were improperly set.

Guess I'm to accustomed to xaml bindings, never really did it in code.

Thanks.

from twintechsformslib.

georgejecook avatar georgejecook commented on May 30, 2024

I still don't get what you're doing. If you set the binding sin xaml such as
"< Label Text="{Binding Name}" />" and any changed to name are automatic.
if your cell is in code (not really necessary with the performance gains you get), then you'd just set the binding up in the SetupCell method, or if binding is not required, set properties directly in that method (that's my most common use case, and best one for performance).

Does the SetupCell method name confuse you? do you think it's name needs to change?

thanks.

and ping back if you're still struggling to get the correct feel for your code. I want people to use this fairly seemlessly and certainly comfortably.

from twintechsformslib.

ncovone avatar ncovone commented on May 30, 2024

I was under the impression that, for optimal performance, the bindings should be done in code, in the SetupCell method. No, the method name does not confuse me, its fine. I tried to follow the way you wrote your sample cells. Only thing is that you don't use bindings, you set the properties directly. I agree that its the best case for performance.

I tried the bindings in my cell's xaml code and they do in fact work.

from twintechsformslib.

georgejecook avatar georgejecook commented on May 30, 2024

Yes - I show the best performance case. I'll add an example with xaml bindings too!

Don't optimize early: I find bindings don't have such a great overhead - you can go ahead and use them, and then drop down to manually setting values if needs be. But your case needs bindings anyhow, so you may as well give it a go in xaml, and see how it pans out.

from twintechsformslib.

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.