My app includes 4 CollectionView(s), one of which contains a CollectionView in it's ItemTemplate. Here is a screenshot from the XAML Previewer:
The 4 Collection Views are the following:
- The first row ("First", "Second", "Player Three", "Fourth", etc.)
- The left column (blue with numbers)
- The center area (light colored columns with numbers, the ItemTemplate is a CollectionView)
- The third row (colored with numbers)
I need the following scroll scenarios to be synchronized. I need horizontal synchronization for 1, 3, and 4. I need vertical synchronization for 2 and the CollectionView(s) in the ItemTemplate of 3. Some of the things causing me problems with doing this are:
- CollectionView only has a ScrollTo method that accepts the index of an item. This could cause problems synchronizing the vertical scrolling because not all CollectionView(s) will always have the same number of items, most likely causing IndexOutOfRangeException. It would also prevent smooth synchronization.
- Because the CollectionView(s) in the ItemTemplate of 3 do not have an ID like the other CollectionView(s), I am not sure how to access them to apply whatever actions are necessary to perform the synchronization.
Most stuff that I have found about CollectionView seem to give the implication that it is intended to be a standalone element that has very little layout and elements outside of itself, although I have found that to rarely be the case for me (and maybe for others as well). What can I do to synchronize my CollectionView(s)? Thanks.