Giter Site home page Giter Site logo

Comments (5)

slodge avatar slodge commented on May 21, 2024

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.

slodge avatar slodge commented on May 21, 2024

Something like https://gist.github.com/4119401 - but won't test properly until much later tonight!

from mvvmcross.

Fundevil avatar Fundevil commented on May 21, 2024

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.

slodge avatar slodge commented on May 21, 2024

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.

slodge avatar slodge commented on May 21, 2024

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)

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.