Use SemanticZoom to display alphabetical titles, for example, in the Start menu

I have a set of elements that I want to display in an alphabetical list, where you can click on the title to get an enlarged view that displays the GridView with the letters az (plus a few more), for example, on the Start menu, I assume that I have to use SemanticZoom, but I'm not sure how to configure it. What is the best way to do this?

+4
source share
1 answer

Yes, in your xaml you will need to zoom in and zoom out. You also need to group your data and provide a “key” (the first character of each word) so that you jumplistcan use it for review.

For reference xaml template template:

<SemanticZoom>
     <SemanticZoom.ZoomedInView>
         <!-- Element to display when "zoomed in". Usually a ListView or GridView -->
     </SemanticZoom.ZoomedInView>
     <SemanticZoom.ZoomedOutView>
         <!-- Element for jump list, usually a GrivView or ListView -->
     </SemanticZoom.ZoomedOutView>
 </SemanticZoom>

A complete example can be found here: http://visuallylocated.com/post/2014/04/28/Migrating-from-the-LongListSelector-to-the-ListView-in-Windows-Phone-XAML-Apps.aspx

+4
source

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


All Articles