Create a hub page with various controls in Windows 8

The most accessible pages you can call GroupedGridView (for example, an application on the market)

But I would like to have a Grouped hub page with various controls.

For example, my first control is a ListView that contains some categories. 2nd and 3rd controls - GridViews with several elements in them.

If all 3 controls were GridViews, I could easily get this to work, but it is not.

I cannot find a working ScrollViewer combination with a grid or stack to get a real full horizontal scroll.

Any idea or examples of how to create such a landing / hub page with various controls on one horizontal page?

+4
source share
1 answer

You can use a GridView that is not grouped, where each element will be a different control displayed using a different DataTemplate.

Or you can trick FlipView into acting like a Panorama control for Windows Phone. Details at http://dotnetbyexample.blogspot.cz/2012/08/a-winrt-behavior-to-turn-flipview-into.html

EDIT : For the first solution, you create a base class and create a list with different objects retrieved from the base class. Then you use the GridView ItemTemplaceSelector to select the appropriate DataTemplate. See http://coding.kulman.sk/using-different-data-templates-with-gridview-in-windows-8-apps/

+4
source

Source: https://habr.com/ru/post/1443202/


All Articles