wpf - How can I add scrolling to an ItemsControl? -


I want to show items in an ItemsControl in 3 * 4 pages is a cool feature example For:

  & lt; ItemsControl & gt; & Lt; ItemsControl.ItemsPanel & gt; & Lt; ItemsPanelTemplate & gt; & Lt; Uniform Grid Column = '3' Row = '4' / & gt; ...  

How do I enable scrolling? If the panel is a stackpanel , scrolling / paging is enabled. But for Uniform Grid

it is not clear whether you paging or Want to scroll, but I think you mean the latter. This is the case, just place ItemsControl in a ScrollViewer :

  & lt; ScrollViewer & gt; & Lt; Item control ... & gt; & Lt; / ItemsControl> & Lt; / ScrollViewer & gt;  

Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -