Is there a replacement for this WPF code?
<WrapPanel>
<TextBlock Width="100" Height="20"/>
<TextBlock Width="30" Height="50"/>
<TextBlock Width="150" Height="70"/>
</WrapPanel>
This is really stupid if there is none...
Update:
I forgot to mention that the width of the WrapPanel is smaller than the total width of all the TextBlocks combined. This means that some of the items need to wrap to a second row.
I thought that this is what most people used a WrapPanel for, but apparently some use it for a Horizontal StackPanel (In this case, you should set the StackPanel's Orientation
to Horizontal
...)
Well well, 5 minutes after I posted this I found the VariableSizedWrapGrid! Its the exact replacement, just a different name (?!?).
Another alternative:
Easy.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With