Author Topic: UIWrapContent to be used as a 'mainstream' scroll view?  (Read 3197 times)

Antitribu

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 6
    • View Profile
UIWrapContent to be used as a 'mainstream' scroll view?
« on: March 28, 2014, 09:02:50 AM »
The newest UIWrapContent seems like a perfect candidate to implement a mainstream scroll view logic — capable of presenting the (possibly) infinite list of uniform items from a data source, yet consuming the absolute minimum of memory (only rendering what's on-screen).

Yet, the only method it presents for such implementation, is 'UpdateItem'. IMHO, another standard method would fit in to complete the concept I am speaking about: 'GetCount' (to specify the end exact number of items to be presented).

Is such a thing planned to include into the UIWrapContent interface, or is it left up to be implemented by hand when needed?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIWrapContent to be used as a 'mainstream' scroll view?
« Reply #1 on: March 28, 2014, 09:22:49 AM »
UIWrapContent is meant to be derived from to create custom functionality, so if you wanted to have a finite number of entries, that would be something you'd do in a derived class. I'll likely improve it in the future as I actually use this functionality myself though. I'm always hesitant to add stuff if I don't plan on making use of it myself as I know quality ultimately suffers if I do that.