Skip to main content
A newer version of this page is available. .

FloatGroup.SizeToContent Attached Property

Gets or sets whether a panel will automatically size itself to fit the size of its content. This is an attached property.

Namespace: DevExpress.Xpf.Docking

Assembly: DevExpress.Xpf.Docking.v19.1.dll

Declaration

Returns

Type Description
SizeToContent

A SizeToContent enumeration value that specifies whether a panel will automatically size itself to fit the size of its content.

Remarks

The SizeToContent property specifies whether a panel height, width, or both are automatically set to fit the panel content when the panel is displayed floating. If the panel automatically sizes itself to fit its content, the corresponding BaseLayoutItem.ItemHeight and BaseLayoutItem.ItemWidth properties are not in effect. The code snippet below shows how to attach the SizeToContent property to the LayoutPanel object.

<dxdo:LayoutPanel Caption="Panel1" dxdo:FloatGroup.SizeToContent="WidthAndHeight"/>

If the SizeToContent property is set to Manual, the panel height and width are specified with the BaseLayoutItem.ItemHeight and BaseLayoutItem.ItemWidth properties, respectively.

See Also