Comments (5)
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.
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.
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.
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.
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)
- Xamarin.Forms 2.0.1.6495 - GetRendererDelegate issues HOT 1
- Page inside page is not working on iOS HOT 2
- FastCell with SwipeGesture not working
- How to scale SVGs without preserving the aspect ratio HOT 4
- Layer exceeds max. dimensions supported by the GPU in TwinTech scroll view on Android Marshmallow HOT 1
- PageViewContainer Carousel not working on iOS but working on Android HOT 4
- SVG Image does not support HorizontalOptions? (Android) HOT 3
- Getting "System.NotSupportedException: Path Operation c" when trying to load a SVG HOT 5
- ListView or Grid not appearing when ContentPage inside PageViewContainer
- Is this support UWP? HOT 1
- Grid No work in ScrollView
- LongPress is not working
- Issue with TwinTechForms.SvgImage.Droid; errors in Resource.Designer.cs HOT 1
- Svg stroke-linecap and stroke-linejoin support. HOT 2
- Android.Views.GestureDetector - System.ObjectDisposedException: Cannot access a disposed object.
- PageViewContainer crash under ios 10.2 HOT 4
- SvgImage Exception when setting SvgPath Property late
- Gesture code HOT 1
- XXHDPI Support for pan gestures
- demo code not working svg with multiple path elements
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from twintechsformslib.