Skip to main content

FlowLayoutControl.MaximizedElementOriginalSize Property

Gets or sets the original size of the maximized element, exhibited before it was maximized.

Namespace: DevExpress.Xpf.LayoutControl

Assembly: DevExpress.Xpf.LayoutControl.v24.1.dll

NuGet Package: DevExpress.Wpf.LayoutControl

Declaration

public Size MaximizedElementOriginalSize { get; set; }

Property Value

Type Description
Size

A Size structure that specifies the original size of the maximized element, exhibited before it was maximized.

Remarks

When an item is about to be maximized (see the FlowLayoutControl.MaximizedElement topic), its size is stored in the MaximizedElementOriginalSize property. So, when restored, this element is returned to its original size.

The FlowLayoutControl supports item resizing (if the FlowLayoutControl.AllowLayerSizing and FlowLayoutControl.ShowLayerSeparators options are enabled). When any item is maximized and layers are resized, either the Width or Height field of the MaximizedElementOriginalSize property is automatically updated accordingly. In this scenario, you may want to update the other dimension of the MaximizedElementOriginalSize property to match the automatically updated dimension. To do this, handle the FlowLayoutControl.ItemsSizeChanged event and do the appropriate adjustments.

See Also