Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

NotificationWindow.Show Method

Silverlight

Displays the notification window for the specified number of milliseconds before it times out.

Namespace:  System.Windows
Assembly:  System.Windows (in System.Windows.dll)
[SecuritySafeCriticalAttribute]
public void Show(
	int durationInMilliseconds
)

Parameters

durationInMilliseconds
Type: System.Int32
The duration that the notification window should remain displayed in the system area, specified in milliseconds.
ExceptionCondition
InvalidOperationException

A different notification window instance is still visible.

The durationInMilliseconds period is the period that starts when the notification first fades in, and ends when the fade out animation is completed. The duration of the fade-in and fade-out is system determined. So long as the durationInMilliseconds value is greater than 2000, fade-in and fade-out times are each 1000 milliseconds.

durationInMilliseconds has an upper bound of 30000 and cannot be negative. Setting a value greater than 30000, or less than zero, throws an exception.

Calling Show on the same notification instance where Visibility is still true has no effect, and does not adjust the duration of display specified in the first Show call.

Calling Show on a notification instance while a different notification instance that is initiated by the application is still visible throws an exception

Silverlight

Supported in: 5, 4

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

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.