mercredi 1 avril 2015

Equivalent to 'FlowBreak' property for WPF WrapPanel

In Windows Forms, placing items into a FlowLayoutPanel control works very much the same way as using a WrapPanel in Windows Presentation Foundation (WPF).


Items in a FlowLayoutPanel can have the FlowBreak property set to true to indicate that the panel should move to the beginning of the next row after the item, regardless of how much space remains in the current row. Basically it's saying "line break after this".


I am now using WPF for a project and I need to know how I accomplish the equivalent when using a WPF WrapPanel control.


I already know how to do this with brute force. I'm hoping there is a more elegant and simple method. Any ideas?


Aucun commentaire:

Enregistrer un commentaire