Επεξεργασία

Κοινή χρήση μέσω


SizeChangedInfo(UIElement, Size, Boolean, Boolean) Constructor

Definition

Initializes a new instance of the SizeChangedInfo class.

public:
 SizeChangedInfo(System::Windows::UIElement ^ element, System::Windows::Size previousSize, bool widthChanged, bool heightChanged);
public SizeChangedInfo (System.Windows.UIElement element, System.Windows.Size previousSize, bool widthChanged, bool heightChanged);
new System.Windows.SizeChangedInfo : System.Windows.UIElement * System.Windows.Size * bool * bool -> System.Windows.SizeChangedInfo
Public Sub New (element As UIElement, previousSize As Size, widthChanged As Boolean, heightChanged As Boolean)

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