Skip to main content

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.v23.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