I want to use an ItemsControl
with a ItemsSource
. My issue is how to ensure that the items maintain their height ratio when displayed. Each time I resize the window, the items should resize accordingly, but their height ratio should remain constant. I want to display all items without using a scrollbar.
I’ve tried using a Grid
with Height
of RowDefinition
set to star(x*) for each row. Obviously, this works well when the number of items is known in advance. However, since I need to use an ItemsSource, using RowDefinitions with an unknown number of rows is not feasible. Is there a way to achieve what I want? Thank you very much.
Surrizen is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.