I want to put elements inside a control so that they initially fit like this (like a StackPanel
with Horizontal orientation):
But then, when the elements stack to the point they won't fit anymore in the screen, I want them to start behaving like this:
Like an UniformGrid
: as the number of elements increase, they become smaller.
What would be the best or any way to do this? Since the external control size is variable (it depends on the user's screen size) I can't "hack" it to use one component or another depending on the number of elements because I can't predict the number it takes to "break" the screen.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…