Answered by:
listView.layout itemInfo function

Question
-
Hi,
I'm trying to create a listview like this..
I was reading the winjs listview walk-through (http://msdn.microsoft.com/en-us/library/windows/apps/xaml/hh781224.aspx ),
Under the "Cell-spanning view" section near the bottom of the page, the author explains how to create variable-sized items.
The ListView determines the size of an item using:
-The itemInfo function, if it was supplied.
-Otherwise, the size of the element returned by the rendering function.
However, there doesn't seem to be any information on the itemInfo function.. (http://msdn.microsoft.com/en-us/library/windows/apps/xaml/hh758348.aspx )
Does anybody have information on this function?
Tuesday, June 5, 2012 6:00 PM
Answers
-
This looks more like a split view, however you can create a listview with a render function. See this documentation: http://msdn.microsoft.com/en-us/library/windows/apps/Hh781224.aspx
-Jeff
Jeff Sanders (MSFT)
- Proposed as answer by Jeff SandersMicrosoft employee, Moderator Tuesday, June 5, 2012 6:20 PM
- Marked as answer by Jeff SandersMicrosoft employee, Moderator Tuesday, June 5, 2012 6:52 PM
Tuesday, June 5, 2012 6:20 PMModerator
All replies
-
This looks more like a split view, however you can create a listview with a render function. See this documentation: http://msdn.microsoft.com/en-us/library/windows/apps/Hh781224.aspx
-Jeff
Jeff Sanders (MSFT)
- Proposed as answer by Jeff SandersMicrosoft employee, Moderator Tuesday, June 5, 2012 6:20 PM
- Marked as answer by Jeff SandersMicrosoft employee, Moderator Tuesday, June 5, 2012 6:52 PM
Tuesday, June 5, 2012 6:20 PMModerator -
That's the same documentation link that I posted, and a splitview cannot accomplish what I'm trying to do.
I found the answer in the samples. In case anyone else wants to know, check out the sample "HTML ListView item templates sample" and see example 4
EDIT: I'm still curious about what itemInfo does.. I'd love to see some more documentation- Edited by winjsDev Tuesday, June 5, 2012 6:51 PM
Tuesday, June 5, 2012 6:51 PM -
Yup, that is one that I often suggest. It is amazing that you can find almost anything you need in those samples!
Jeff Sanders (MSFT)
Tuesday, June 5, 2012 6:52 PMModerator