tags:

views:

18

answers:

1

I'd like to show items in an ItemsControl in 3*4 pages One cool feature is that I can change the ItemsPanel of an ItemsControl:

for example:

<ItemsControl>
  <ItemsControl.ItemsPanel>
    <ItemsPanelTemplate>
      <UniformGrid Column='3' Row ='4'/>
...

How can I unable paging though? If the panel is a StackPanel, scrolling/paging is enabled. But not for UniformGrid

A: 

It's unclear whether you want paging or scrolling, but I think you mean the latter. That being the case, simply place the ItemsControl in a ScrollViewer:

<ScrollViewer>
    <ItemsControl ...>
    </ItemsControl>
</ScrollViewer>

HTH,
Kent

Kent Boogaart