SizeChangedEventArgs.HeightChanged Property

Gets a value that indicates whether the Height component of the size changed.

Namespace: System.Windows
Assembly: PresentationFramework (in presentationframework.dll)
XML Namespace:

public bool HeightChanged { get; }
/** @property */
public boolean get_HeightChanged ()

public function get HeightChanged () : boolean

Members of this class are either not typically used in XAML, or cannot be used in XAML.

Property Value

true if the Height component of the size changed; otherwise, false.

Because Double precision numbers process imprecisely, this property might return a value of false even when PreviousSize and NewSize are not equal.

The layout system occasionally experiences this state due to minor fluctuations in the input parameters; however, the overall rendered scene is considered to be the same; therefore, no visible changes are detected. The handler for the SizeChanged event should check for this state in order to avoid invalidation of layout if the dimension didn't actually change.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0