Tereza Hanyan

Tereza Hanyan

  • NA
  • 8
  • 687

Staggered Panel and ISupportIncrementalLoading

Mar 12 2020 1:05 AM
Hello,
   I have a question about the relation between Staggered panel and ISupportIncrementalLoading  interface. When I implement the interface and give the itemssource the corresponding observable collection it stops working with staggered panel, but when I add ItemsWrapGrid in Itemspanel it starts working. I bring example, below. Please, try to answer ASAP. Thank you!
 
<ListView x:Name="ListView" Grid.Row="2" IsItemClickEnabled="True" SelectionMode="Single"
ItemsSource="{x:Bind ViewModel.Collection, Mode=OneWay}">
<ListView.ItemTemplate>
<DataTemplate x:DataType="">
<Border >
<Image Source="{x:Bind url,Mode=OneWay}" Stretch="Uniform"/>
</Border>
</DataTemplate>
</ListView.ItemTemplate>
<ListView.ItemsPanel>
<ItemsPanelTemplate>
<controls:StaggeredPanel DesiredColumnWidth="230" ColumnSpacing="7" RowSpacing="7" />
</ItemsPanelTemplate>
</ListView.ItemsPanel>
</ListView>