Skip to main content

NotificationService Members

Allows you to show Windows 8/10 Style notifications.

Constructors

Name Description
NotificationService() Initializes a new instance of the NotificationService class.

Fields

Name Description
ApplicationIdProperty static Identifies the NotificationService.ApplicationId dependency property.
CustomNotificationDurationProperty static Identifies the NotificationService.CustomNotificationDuration dependency property.
CustomNotificationPositionProperty static Identifies the NotificationService.CustomNotificationPosition dependency property.
CustomNotificationScreenProperty static Identifies the NotificationService.CustomNotificationScreen dependency property.
CustomNotificationStyleProperty static Identifies the NotificationService.CustomNotificationStyle dependency property.
CustomNotificationTemplateProperty static Identifies the NotificationService.CustomNotificationTemplate dependency property.
CustomNotificationTemplateSelectorProperty static Identifies the NotificationService.CustomNotificationTemplateSelector dependency property.
CustomNotificationVisibleMaxCountProperty static Identifies the NotificationService.CustomNotificationVisibleMaxCount dependency property.
PredefinedNotificationDurationProperty static Identifies the NotificationService.PredefinedNotificationDuration dependency property.
PredefinedNotificationTemplateProperty static Identifies the NotificationService.PredefinedNotificationTemplate dependency property.
SoundProperty static Identifies the NotificationService.Sound dependency property.
UnregisterOnUnloadedProperty static Identifies the ServiceBase.UnregisterOnUnloaded dependency property. Inherited from ServiceBase.
UseWin8NotificationsIfAvailableProperty static Identifies the NotificationService.UseWin8NotificationsIfAvailable dependency property.

Properties

Name Description
ApplicationActivator Gets or sets the notification Activator - a descendant of the ToastNotificationActivator class that allows you to manage end-user interactions with notification elements (buttons, selection menus and input boxes).
ApplicationIconPath Gets or sets the path to the application icon, displayed within Windows 10 Style notifications.
ApplicationId Gets or sets the application id. This is a dependency property.
ApplicationName Gets or sets the caption of an application shortcut, pinned to the Windows 10 Start Screen.
AreWin8NotificationsAvailable Gets a value indicating whether native Windows 8/10 notifications are available.
CreateApplicationShortcut Gets or sets whether the service should add application shortcut to the Windows 10 Start Screen.
CustomNotificationDuration Specifies the duration for the display of custom notifications. This is a dependency property.
CustomNotificationPosition Gets or sets the position of custom notifications. This is a dependency property.
CustomNotificationScreen Gets or sets the monitor where the custom notification is shown. This is a dependency property.
CustomNotificationStyle Gets or sets the style of custom notifications. This is a dependency property.
CustomNotificationTemplate Gets or sets the template that defines the presentation of custom notifications. This is a dependency property.
CustomNotificationTemplateSelector Gets or sets an object that chooses a custom notification template based on custom logic. This is a dependency property.
CustomNotificationVisibleMaxCount Gets or sets maximum number of custom notifications that are shown simultaneously. This is a dependency property.
HasAnimatedProperties Gets a value that indicates whether one or more AnimationClock objects is associated with any of this object’s dependency properties. Inherited from Animatable.
PredefinedNotificationDuration Specifies the duration for the display of predefined notifications. This is a dependency property.
PredefinedNotificationTemplate Gets or sets the template that defines the presentation of predefined notifications. This is a dependency property.
RemoveApplicationShortcutOnUnloaded Gets or sets whether the application shortcut should be removed from the Windows 10 Start Screen. This property works only if the application shortcut is created by the service.
Sound Gets or sets the sound played when a notification is shown.
UnregisterOnUnloaded Gets or sets whether to unregister the service when the associated View is unloaded. This is a dependency property. Inherited from ServiceBase.
UseWin8NotificationsIfAvailable Gets or sets a value indicating whether native Windows 8/10 notifications are used. This is a dependency property.

Methods

Name Description
ApplyAnimationClock(DependencyProperty, AnimationClock, HandoffBehavior) Applies an AnimationClock to the specified DependencyProperty. If the property is already animated, the specified HandoffBehavior is used. Inherited from Animatable.
ApplyAnimationClock(DependencyProperty, AnimationClock) Applies an AnimationClock to the specified DependencyProperty. If the property is already animated, the SnapshotAndReplace handoff behavior is used. Inherited from Animatable.
BeginAnimation(DependencyProperty, AnimationTimeline, HandoffBehavior) Applies an animation to the specified DependencyProperty. The animation is started when the next frame is rendered. If the specified property is already animated, the specified HandoffBehavior is used. Inherited from Animatable.
BeginAnimation(DependencyProperty, AnimationTimeline) Applies an animation to the specified DependencyProperty. The animation is started when the next frame is rendered. If the specified property is already animated, the SnapshotAndReplace handoff behavior is used. Inherited from Animatable.
Clone() Creates a modifiable clone of this Animatable, making deep copies of this object’s values. When copying this object’s dependency properties, this method copies resource references and data bindings (but they might no longer resolve) but not animations or their current values. Inherited from Animatable.
CreateCustomNotification(Object) Creates and returns a custom notification with the specified View Model.
CreatePredefinedNotification(String, String, String, Object, String) Creates and returns a predefined notification with the specified header and body text and image.
GetAnimationBaseValue(DependencyProperty) Returns the non-animated value of the specified DependencyProperty. Inherited from Animatable.
RegisterApplicationActivator()
ShouldSerializeStoredWeakReference(DependencyObject) static Specifies whether a dependency object should be serialized. Inherited from Animatable.
UnregisterApplicationActivator()
See Also