A useful custom wrap layout, it is important to note that in the Onmeasure method, the difference between the pattern at_most and the exactly is used when calculating the height of the child control. If the following two images:
1 figure
Is At_most, the black box is the screen, the green box specifies the size of the control, such as (200,100), but the red box is the size you see on the screen, which is the actual size of the control. To put it bluntly, at_most is as long as the content of their own display can be, regardless of the size of the outside designation.
2 figure
The 2 graph represents the exactly, and you can see that the red and green boxes overlap, which means how much is displayed outside the specified number. Specifies that the contents of the control will not be complete, indicating that the display is normal, if there is a background color, on the screen, the display area is overlapping area.
The layout of the Wrap line