is there a datatemplate for grid panel elements in WPF?
Fairly new to WPF... I have a collection of data I would like to bind to a grid panel. Each object contains its grid row and column, as well as stuff to fill in at the grid location. I really like how I can create data templates in the listbox XAML to create a UI with almost nothing in the code behind for it. Is there a way to create a data template for grid panel elements, and bind the panel to a data collection? You can use an ItemsControl with a Grid as its panel. Here is an example. XAML: <ItemsControl x:Name="myItems"> <ItemsControl.ItemsPanel> <ItemsPanelTemplate> <Grid> <Grid