Comments (5)
Thanks for the report
Is a fix for this as simple as the MvxActionBasedBindableTableViewSource also provinding a mechanism to override the CellIdentifier call too?
In the slightly longer term I'd also want to look at moving CellIdentifier to be a virtual property in the base table source class.
Will look at this more later
Stuart
from mvvmcross.
Something like https://gist.github.com/4119401 - but won't test properly until much later tonight!
from mvvmcross.
Hi, thanks for the quick reply.
I have just done a quick test, and now the cells are reused as expected. Thanks.
But my second problem still exist: Without the patch, I could update the Datasource and the uitablecell directly updates the view via binding. Now I have to scroll the cell out of sight and back to refresh the content.
Greetings
Oliver
from mvvmcross.
I think you'll maybe need to look at the cell code to force it to redraw - try adding code like SetNeedsLayout and SetNeedsRedraw - see http://stackoverflow.com/questions/950769/how-to-refresh-uitableviewcell and lots of other qu's
e.g. your property might become
public string Title
{
get { return _titleLabel.Text; }
set { _titleLabel.Text = value; SetNeedsLayout(); }
}
from mvvmcross.
Thanks for the report.
ActionBased problem fixed in both master and vnext.
If there's more on the SetNeedsRedraw issue, then please let me know... either here (reopen) or u=in a new issue.
Closing for now.
from mvvmcross.
Related Issues (20)
- MvxViewModel<TParameter> is instantiated twice and Prepare(TParameter) is not being invoked HOT 6
- Changelog for 9.1.0. #4546 was actually fixed in 9.0.10 HOT 3
- Remove PackageReference Xamarin.Google.Android.Material
- [Android] Reset app start status only when Activity is finishing
- [Android] SetIcon from ResourceId of Tab in TabLayout does not work HOT 4
- Android App crashes on startup when changing Target Framework to .NET 8 using MvxRecyclerView
- Sample project with XAML views on net6.0 and MvvmCross 9 HOT 6
- Language files are not loaded in iOS project / Degration #2678 HOT 1
- NullReferenceException in TryInitializeBindingResourcePaths
- BackgroundTask scheduled HOT 1
- MvxApplication.Initialize runs on main thread HOT 3
- Crash on mapping 2 views to same view model in iOS HOT 2
- MvxWeakEventSubscription throws without much information
- MvvmCross.Plugin.Visibility not working in .NET 7.0 Android Project HOT 8
- It looks like mvx:Bi.nd in combination with InvertedVisibility is broken in 9.2 HOT 3
- Load order change results in not being able to use constructor injection for IMvxNativeVisibility in ValueCombiners
- MAUI App that uses existing MVVMCross ViewModels - Fails with mismatch in Dependencies for Android as Target HOT 7
- MvxRecyclerView crashes on .NET 8 HOT 3
- .NET 8 Android Failed to resolve type MvvmCross.Binding.BindingContext.IMvxBindingContextStack when calling MvxActivity.SetContentView HOT 8
- MvxModalPresentationControllerDelegate closes a ViewController when the ViewController is not actually dismissed by a user HOT 2
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 mvvmcross.