Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Virtualizing Uniformgrid

Tags:

c#

.net

wpf

Does anyone know if there exists a virtualizing uniformgrid implementation somewhere for WPF that one can use?

I've tried one stackoverflow and Google and found nothing so far.

What I have been using so far is a ListBox with a UniformGrid as its ItemsPanel. But that doesn't virtualize.

like image 874
Anders Rune Jensen Avatar asked Jul 29 '11 13:07

Anders Rune Jensen


2 Answers

Yes virtualization is tricky for grids and dockpanels and currently no such control exists in WPF.

But there are a few options...

  1. if you want know how to make a virtualized tile panel (more like a uniform grid and wrappanel) then see this... http://blogs.msdn.com/dancre/archive/2006/02/06/implementing-a-virtualized-panel-in-wpf-avalon.aspx

  2. Otherwise xamDataPresenter can pretty much act like a virtualized uniform grid (see XamDataCard ) and wrap panel. Its 3rd party control though belonging to Infragistics ...

like image 183
WPF-it Avatar answered Oct 14 '22 03:10

WPF-it


The closest I got yesterday was this VirtualizingTilePanel inspired by Dan Creviers work. Sadly it dropping it in as a repacement for uniformgrid didn't just work out of the box.

like image 20
Anders Rune Jensen Avatar answered Oct 14 '22 05:10

Anders Rune Jensen