This example illustrates how you can display notifications using our NotificationService.
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>