wp wp8 & win8: Stretch's Uniform and UniformToFill

Uniform, the height and width of the control will increase until the size of the container is reached, that is to say, the size of the control is related to the size of the container. At the same time, if a clear height and width are set for the control, their maximum value is A limit. For example, set the height of a Rectangle to 10 and the width to 100, then you will get a 10*10 graphic.

  UniformToFill, the height and width of the control will be set symmetrically until the entire container is filled. For example, setting a Rectangle in a 100*200 container, then you will get a 200*200 control size, and other parts will be intercepted. If you set a clear height and width, for example, set the width of Rectangle to 10 and the height to 100, then You will get a symmetrical control of 100*100.

  In fact, the value of Stretch is Fill, the effect is the same as that of setting HorizontalAlignment and VerticalAlignment to Stretch, but when a clear width and height are set, HorizontalAlignment and VerticalAlignment will be ignored.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326397003&siteId=291194637