You are developing a Windows Store video-sharing app. Videos are represented in the app by a
VideoCollection class that contains a list of videos. The app includes the following code segment:
The app must support grouping by the VideoCollection object.
You need to bind a GridView control that can display and group the videos to a List<VideoCollection> collection
named VideoLibrary.
Which three actions should you perform in sequence?(To answer, move the appropriate actions from the list of
actions to the answer area and arrange them in the correct order.)
Answer:
1. create a CollectionViewSource
2. Set the ItemSource property of the GridView to CollectionViewStource
3. then set IsSourceGrouped property to true, and set the ItemPath property to Videos
1. create a CollectionViewSource
2. set IsSourceGrouped property to true, and set the ItemPath property to Videos
3. Set the ItemSource property of the GridView to CollectionViewStource
5
3
1