Skip to main content

NotifyIconService Members

Allows you to place a notification icon (system tray icon) in the Windows notification area and manage its behavior.

Constructors

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

Fields

Name Description
ContextMenuProperty static Identifies the NotifyIconService.ContextMenu dependency property.
IconProperty static Identifies the NotifyIconService.Icon dependency property.
LeftClickCommandProperty static Identifies the NotifyIconService.LeftClickCommand dependency property.
LeftDoubleClickCommandProperty static Identifies the NotifyIconService.LeftDoubleClickCommand dependency property.
StatesProperty static Identifies the NotifyIconService.States dependency property.
ThemeNameProperty static Identifies the NotifyIconService.ThemeName dependency property.
TooltipProperty static Identifies the NotifyIconService.Tooltip dependency property.
UnregisterOnUnloadedProperty static Identifies the ServiceBase.UnregisterOnUnloaded dependency property. Inherited from ServiceBase.

Properties

Name Description
ContextMenu Gets or sets the notification icon’s context menu. 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.
Icon Gets or sets a value specifying the tray icon’s image. This is a dependency property.
LeftClickCommand Gets or sets a command executed when the notification icon (system tray icon) is left clicked. This is a dependency property.
LeftDoubleClickCommand Gets or sets a command executed when the notification icon (system tray icon) is double-clicked with the left mouse button. This is a dependency property.
States Gets or sets a collection of the tray icon’s states. This is a dependency property.
ThemeName Gets or set a value specifying the theme applied to the notification icon’s context menu. This is a dependency property.
Tooltip Gets or sets the icon’s tooltip. This is a dependency property.
UnregisterOnUnloaded Gets or sets whether to unregister the service when the associated View is unloaded. This is a dependency property. Inherited from ServiceBase.
Window This member supports the internal infrastructure and is not intended to be used directly from your code.

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.
GetAnimationBaseValue(DependencyProperty) Returns the non-animated value of the specified DependencyProperty. Inherited from Animatable.
ShouldSerializeStoredWeakReference(DependencyObject) static Specifies whether a dependency object should be serialized. Inherited from Animatable.
See Also