AutoHideGroup.SizeToContent Attached Property
Gets or sets whether an auto-hide panel should be resized according to its content. This is attached property.
Namespace: DevExpress.Xpf.Docking
Assembly: DevExpress.Xpf.Docking.v19.1.dll
Declaration
Returns
Type | Description |
---|---|
SizeToContent | A SizeToContent enumerator value that specifies whether an auto-hide panel should be resized according to its content. This is attached property. |
Remarks
Depending on the SizeToContent enumerator value assigned to the SizeToContent property, an auto-hide LayoutPanel can adapt to its content. You can force the panel to stretch vertically, horizontally or in both directions to fit the size of the content within this panel. If the SizeToContent property equals SizeToContent.Manual, the layout panel will not be scaled and will use its BaseLayoutItem.ItemWidth and BaseLayoutItem.ItemHeight property values instead (default behavior).
To get or set the SizeToContent property in code, use the AutoHideGroup.GetSizeToContent and AutoHideGroup.SetSizeToContent methods respectively.
See the Auto-Hide Groups topic for details.