共用方式為


AbsoluteLayout.AutoSize Property

Definition

A value that indicates that the width or height of the child should be sized to that child's native size.

public static double AutoSize { get; }
member this.AutoSize : double

Property Value

System.Double

Remarks

Application developers can set the width or height of the Bounds property to AutoSize on a visual element when adding to the layout to cause that element to be measured during the layout pass and sized appropriately.

Applies to