Get Microsoft Silverlight

Thursday, March 11, 2010

UniformGrid for Silverlight

My recent Silverlight project had a need to distribute the items in rows and columns. I had to dynamically calculate the number of columns and rows it needed based on some logic. So it was clear that I need UniformGrid as in WPF so that I can bind my ViewModel properties to Rows and Columns properties of the Panel. But it was a bit surprising to me that there isn’t a Silverlight UniformGrid either in Silverlight SDK or in Silverlight ToolKit. So here is one I ported from WPF. Check out the Silverlight 3.0 demo below.
Get Microsoft Silverlight
You can also download the sample project


KeepingItSimple said...

Works like a Smoothie !! Thanks a Lot !!!

Anonymous said...

This is great ... thanks for sharing!

Melisa Marzett said...

Thanks for the link, I have already check out the Silverlight 3.0 demo and downloaded the sample project. Well-done! By utilizing proofreading services, you will be getting only higher grades in any academic disciplines:)