NotificationWindow.Height Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets or sets the height, in pixels, of this notification window. See Remarks.

Namespace:  System.Windows
Assembly:  System.Windows (in System.Windows.dll)


Public Property Height As Double
public double Height { get; set; }

Property Value

Type: System.Double
The height, in pixels, of this notification window when it is displayed.


Exception Condition

Attempted to set value greater than 100, or less than 0.


Attempted to set value while notification window is visible.


You must set Height before Show is called and the notification is displayed. Setting Height on a displayed notification throws an exception. You may want to check Visibility before setting Height as a preventive measure.

Version Information


Supported in: 5, 4


For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.