I am using WrapPanel in WPF to display images. When resizing the form, these images try to take the maximum free space, but when the image can almost fill the space, there is a relatively large gap at the end of the WrapPanel. I would like to do this to divide this space between images before a new one fills this gap (for example, what Windows 7 Explorer does when displaying image icons).
source share