Answered by:
Adding content before or after a ListView

Question
-
I feel like what I am trying to do should be very simple, but I am not seeing an obvious solution.
If I have a ListView that displays grouped items. This is basically just the Grid Application from the Visual Studio template. I want to add some content (a small section with some other information before (or after) the ListView, and I would like that content to scroll in the same way as the ListView. Since the ListView implements its own scrolling, I am struggling with how I would implement this behavior.
Dave Paquette @Dave_Paquette www.davepaquette.com
Wednesday, June 20, 2012 3:29 PM
Answers
-
What about adding the Map as a group and then use a custom renderer for the GridLayout to draw the map. The size of the map will need to be an increment of the size of the grid. This tutorial shows adding elements of varying sizes so you could probably adapt this to your needs: http://msdn.microsoft.com/en-us/library/windows/apps/Hh972605.aspx
Jeff Sanders (MSFT)
- Proposed as answer by Jeff SandersMicrosoft employee, Moderator Friday, June 22, 2012 7:34 PM
- Marked as answer by Dave Paquette (MVP)MVP Friday, June 22, 2012 7:59 PM
Friday, June 22, 2012 7:34 PMModerator
All replies
-
Hi Dave,
Could you provide some sort of mock up (a picture) of what you are trying to do?
-Jeff
Jeff Sanders (MSFT)
Friday, June 22, 2012 11:28 AMModerator -
Friday, June 22, 2012 12:55 PM
-
Do you mean that you want the Map to be part of the list view, or something completely different?
Jeff Sanders (MSFT)
Friday, June 22, 2012 7:05 PMModerator -
I would like to have the map come before the List View, but have everything scroll as one piece.
Dave Paquette @Dave_Paquette www.davepaquette.com
Friday, June 22, 2012 7:07 PM -
What about adding the Map as a group and then use a custom renderer for the GridLayout to draw the map. The size of the map will need to be an increment of the size of the grid. This tutorial shows adding elements of varying sizes so you could probably adapt this to your needs: http://msdn.microsoft.com/en-us/library/windows/apps/Hh972605.aspx
Jeff Sanders (MSFT)
- Proposed as answer by Jeff SandersMicrosoft employee, Moderator Friday, June 22, 2012 7:34 PM
- Marked as answer by Dave Paquette (MVP)MVP Friday, June 22, 2012 7:59 PM
Friday, June 22, 2012 7:34 PMModerator -
That is what I was considering doing. I was just hoping I could put 2 items in a scroll pane or something along those lines.
Dave Paquette @Dave_Paquette www.davepaquette.com
Friday, June 22, 2012 7:59 PM