Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.2.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