#450 – Data Binding Elements in a Collection to a Grid, part III

We’ve done part of the work required in order to bind a collection of elements to a Grid, with each object’s Row and Column properties indicating where in the Grid it should be located.

  • Set the ItemsPanel property of an ItemsControl to represent a Grid
  • Set the ItemTemplate property to represent the item, setting the Grid.Row and Grid.Column property for each

At this point, the binding doesn’t work as expected.  Each element does get inserted into the grid, but every element is added to Row 0 and Column 0.  The Grid.Row and Grid.Column attached properties are being ignored.

About these ads

About Sean
Software developer in the Twin Cities area, passionate about .NET technologies. Equally passionate about my own personal projects related to family history and preservation of family stories and photos.

One Response to #450 – Data Binding Elements in a Collection to a Grid, part III

  1. Pingback: Dew Drop – December 14, 2011 | Alvin Ashcraft's Morning Dew

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 351 other followers

%d bloggers like this: