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.v20.1.dll

Declaration

public ObservableCollection<NotifyIconState> States { get; set; }
Public Property States As ObservableCollection(Of NotifyIconState)

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