Using built-in Action ContextMenu in WebNotification

This sample demonstrates the built-in capability to display action context menu in WebNotification. In this sample, the WebNotification is using following settings:

- ServiceType: WebService
- ServiceUrl: WebNotificationService2.asmx
- ShowActionDropdown: True
- Using "Modern" styles
- Sounds enabled, sound file set to NewAlert.wav
- Interval: 20 seconds.
- FadingSpeed: Fast.

To learn more about the basic functions and concepts of WebNotification, please check out the following samples:

- WebService-based WebNotification
- WebForm-based WebNotification

Summary:
- The action context menu is built using Visual Menu Builder at designtime. The WebNotification integrates with the "Hybrid Menu" system introduced in WebDesktop.NET 4.0.
- With the Hybrid Menu, that means it used same object model and architecture as in other controls of WebDesktop.NET that requires menu functions.
- You can customize the menu direction and alignment in the ActionMenu property under Menu Control property group.
- Notice that while the action context menu is active, the notification window will stay visible regardless of DisplayLatency timer.
- The menu item click action is handled by javascript function specified in OnClick property of the menu item.

6r