
Silverlight 4: NotificationWindow
- 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

Code

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.

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

Below is an example of working with NotificationWindow

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

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.

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