Silverlight 4: NotificationWindow

Original author: Corey Schuman
  • Transfer
Silverlight 4 added a new object - NotificationWindows, which allows you to notify the user about various events. Since it functions as a system message, it will only work when the application starts outside the browser.

Below is an example of working with NotificationWindow

image

Code
  • Tick ​​event, checks if the application is running outside the browser (OOB)
  • If started, initializes the NotificationWindow object
  • Sets Content, it can be TextBox or UserControl
  • To display a notification on the screen, it calls the Show method, indicating the display time in milliseconds
image

Facts about NotificationWindow

Can I get multiple notifications at once?
- Not.

Can a user interact with NotificationWindow?
- Yes, but only with the mouse.

What is the size of NotificationWindow?
- 400x100.

image

Can I customize the appearance of the notification window?
- Yes, use UserControl for this.

image

Also popular now: