Relative Content

Tag Archive for c#wpfdata-bindingdatagrid

How to make size of rectangle depend on biggest item in a list of items

I have this simple example program with 2 columns. The column on the left holds a datagrid, and the column on the right has a red rectangle in the middle. I want to make a binding, so that the width/height of the rectangle is always equal to the size of the biggest item in the list.