Microsoft
70-484 · Question #156
You have been asked to implement a data control that displays photos from an album with a grouping option selected by the user. In future releases, you are expected to support photo filtering and…
The correct answer is B. Use a GridView control in the UI and bind the GridView to a CollectionViewSource object. C. Prepare an ICollectionView view by using LINQ to group items from the collection of albums, use D. Set the IsSourceGrouped property of the CollectionViewSource to true. See the full explanation below for the reasoning.
Question
You have been asked to implement a data control that displays photos from an album with a grouping option selected by the user. In future releases, you are expected to support photo filtering and sorting from the user's photo collection. What are the steps required to implement this feature? (Choose all that apply.)
Options
- AUse a GridView control in the UI and bind the GridView with the collection of albums.
- BUse a GridView control in the UI and bind the GridView to a CollectionViewSource object.
- CPrepare an ICollectionView view by using LINQ to group items from the collection of albums, use
- DSet the IsSourceGrouped property of the CollectionViewSource to true.
- ECreate a custom DataTemplateSelector for the GridView and use the selector for displaying the
How the community answered
(21 responses)- A10% (2)
- B76% (16)
- E14% (3)
Community Discussion
No community discussion yet for this question.