TextWrapping in WrapPanel

Hi,

I am trying to display a set of Text elements with wrapping enabled, inside a WrapPanel which has Dock=“Fill”.
The result is that longer texts wrap but not properly (they extend over the length of the WrapPanel). Look at the last element before the last.

Any idea if this is a bug or there is some layout setting I am missing?
If I take out the WrapPanel, the text items wrap properly horizontally.

Can you produce a minimal case so we can take a look? I’m not sure if you’re missing something off the top of my head; I’d have to play with it.