Hello All I have a grid in Xaml file and i want to generate its rowdefinition dynamically. to do that i create a List in which i added 3-4 rowdefinitions now i have to bind this property to the grid in xaml file. PLease suggess me how to do this. thanks Sher Singh
+1
A:
If you want to host dynamic content (varying number of items), the Grid
control might not be your best option. Try using an ItemsControl
(which can be templated to look however you want) and bind your actual data against the ItemsSource property. If you post some more information about what kind of content you are looking to display I can give you an example of how to do it with an ItemsControl.
Oskar
2010-09-30 09:02:45