WPF Organizes Elements in a Virtualization Grid

I am looking for a way to represent equally sized elements in a fixed number of rows and any number of columns. (Think of watching an iTunes or Picasa album. I find some platforms refer to this as a "gridview")

A WrapPanelwill complete the task, but I will become attached to a very large set of objects, so I need virtualization.

I browsed the web and found both commercially available VirtualizationWrapPanelsand blog posts on how to implement my own VirtualizationPanel, but I cannot find simpler solutions.

Is it possible to organize virtualized data elements in the form of a grid (a fixed number of rows) with standard WPF components?

+3
source share
3 answers

The responsibility for providing virtualization lies with the Group. Unfortunately, the infrastructure provides StackPanel virtualization:

http://msdn.microsoft.com/en-us/library/system.windows.controls.virtualizingpanel.aspx

There is a very good blog post that provides WrapPanel virtualization here:

http://blogs.claritycon.com/blog/2009/09/16/custom-panels-in-silverlight-wpf-part-4-virtualization/

Another option is to use a DataGrid, this will virtualize for you.

0
source

Recently, I had to look for a hunt for such functionality and struggled to find everything that was ready for production.

I found a series or articles and sample code that contain a panel virtualization panel

http://blogs.msdn.com/b/dancre/archive/tags/virtualizingtilepanel/

, . . , , , .. , .

, , , . , , , . , . , .

+1

, ( ) " " ( ), . "".

+1

Source: https://habr.com/ru/post/1786615/


All Articles