Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

NotifyIconService.States Property

Gets or sets a collection of the tray icon’s states. This is a dependency property.

Namespace: DevExpress.Xpf.Core

Assembly: DevExpress.Xpf.Core.v24.2.dll

NuGet Package: DevExpress.Wpf.Core

#Declaration

public ObservableCollection<NotifyIconState> States { get; set; }

#Property Value

Type Description
ObservableCollection<NotifyIconState>

A collection of the tray icon’s states.

#Remarks

Each Notification State is represented by an instance of the NotifyIconState class that provides the NotifyIconState.Icon and ToolTip properties specifying the tray icon’s image and tooltip respectively.

To switch between the predefined states, use the INotifyIconService.SetStatusIcon method. If you wish to reset the notification icon to the default image, use the INotifyIconService.ResetStatusIcon method.

Note

The NotifyIconService recognizes states by their names, so each state should have a unique NotifyIconState.Name value.

See Also