SizeChangedInfo(UIElement, Size, Boolean, Boolean) Constructor

Definition

Initializes a new instance of the SizeChangedInfo class.

C#
public SizeChangedInfo(System.Windows.UIElement element, System.Windows.Size previousSize, bool widthChanged, bool heightChanged);

Parameters

element
UIElement

The element where the size is being changed.

previousSize
Size

The previous size, before the change.

widthChanged
Boolean

true if the Width component of the size changed.

heightChanged
Boolean

true if the Height component of the size changed.

Remarks

For the two Boolean parameters, note that you should report these as true only if the changes in the value are significant to rendering, or should interpret the values as such if reading existing values. Minor changes in the size values are possible due to precision side-effects, particularly when mathematical functions are applied to the double values.

Applies to

Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10