Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to style groups of data as they are loaded incrementally in WinRT?

In WinRT if we want to support incremental loading, the data source must implement the ISupportIncrementalLoading interface. I have this implemented and the data displays correctly in a GridView.

The data I'm incrementally pulling down has a date associated with it. I want to display the associated month as a "Group Header" for the data already pulled down. However, I don't see a clean way to style in the "Group Header" as the months of the incrementally loaded items change.

Group Headers inserted into incrementally loaded data.

I realize that normal grouping in WinRT is supported via the CollectionViewSource, however as far as I understand this is incompatible with ISupportIncrementalLoading. Which makes sense for the general case since newly loaded items may not actually be placed at the end. However, in this case I know the data is already grouped by months on the server and pulled down in order.

Is there a way to style in the "Group Header" as I drew above?

like image 393
Unknown1987 Avatar asked Nov 13 '22 13:11

Unknown1987


1 Answers

CollectionViewSource does compatible with ISupportIncrementalLoading, just set the source of CollectionViewSource to a something implements ISupportIncrementalLoading.

like image 78
Helin Wang Avatar answered Dec 24 '22 12:12

Helin Wang