79663621

Date: 2025-06-12 13:40:10
Score: 1
Natty:
Report link

In the end, I concluded there was no easy out, so I created a subclass of Grid tailored to be placed inside an ItemsControl's ItemsPanel (With IsItemsHost = "True"), and which would dynamically modify the ColumnDefinitions/RowDefinitions by using GetItemsOwner and GetItemsSource to get the weights of each collection item and setting the width/height of the definitions to that weight with GridUnitType_Star.

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Kristoffer Sjöö