Udostępnij za pośrednictwem


NotificationWindow.Width Property

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

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

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

Syntax

'Declaration
Public Property Width As Double
public double Width { get; set; }

Property Value

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

Exceptions

Exception Condition
ArgumentOutOfRangeException

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

InvalidOperationException

Attempted to set value while notification window is visible.

Remarks

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

Version Information

Silverlight

Supported in: 5, 4

Platforms

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