So, CollectionViewSource weird, and the way to bind to them is weird too. To give you an example to do this โfrom the bookโ (as sample projects do), I found that this should practically be a StaticResource as such:
<Page.Resource> <CollectionViewSource Source="{Binding Whatev}" x:Key="WhatevSource"/> </Page.Resource> <GridView ItemsSource="{Binding Source={StaticResource WhatevSource}}"/>
Please note that we do not put the source directly to the CollectionViewSource , but we set the โimpenetrableโ Binding , mainly using the CollectionViewSource as a DataContext (only one way to think about it, and not actually technically correct).
This is the only way I was able to make it work, although I believe that technically you can set the ItemsSource directly in the View of CollectionViewSource or something similar in the given code.
source share