I think this can be done by binding items Height (i prefer using DataTemplate) to a property in code behind, let's call it MaxHeight, then looping on items ,picking up the max of ActualHeight and finally setting it to MaxHeight property.
Hope it helps