Skip to content

This example demonstrates how to show notifications with the NotificationService

License

Notifications You must be signed in to change notification settings

DevExpress-Examples/wpf-display-notifications-using-the-notificationservice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Display Notifications in MVVM Applications Using the NotificationService

This example illustrates how you can display notifications using our NotificationService.

image

Our NotificationService is used in the same manner as other services. When the UseWin8NotificationsIfAvailable option is enabled, you must use an appropriate ApplicationId.

This id should be specified in the application shortcut located in the "%APPDATA%\Microsoft\Windows\Start Menu\Programs" directory. To create a shortcut with the required application id, you can use the DevExpress.Data.ShellHelper class as shown below:

DevExpress.Data.ShellHelper.TryCreateShortcut("sample_notification_app", "DXSampleNotificationSevice");

Once complete, assign sample_notification_app to the NotificationService.ApplicationId property:

<dxmvvm:Interaction.Behaviors>
    <dxmvvm:NotificationService x:Name="ServiceWithDefaultNotifications" ApplicationId="sample_notification_app" .../>
</dxmvvm:Interaction.Behaviors>

Files to Look At

Documentation

More Examples

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)