WPF Grid of Images - Best control to use?
Question
I'm trying to convert my VB project to WPF, and one big problem I'm having is what to do about a large GridView that contains in each cell a single image. The grid needs to be very large so is the best way to do this in WPF a datagrid, or a dynamically generated Grid control, or something else? I'm not sure which controls give the best performance as the grid could be 100 x 100 or more.
Any suggestions would be brilliant :o)
Solution
I would try using the WrapPanel, to allow for items to flow nicely. If the images are not of the same size though, you could try the UniformGrid within a ScrollViewer, as it will align items for you uniformly.
Performance wise, I'd say don't optimize prematurely! When you have a nice User Experience, you need to do some reading and decide for yourself. Have a look here.