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

JumpListItemTask.IconIndex Property

Gets or sets the index of an icon contained in the image source specified by the JumpListItemTask.IconPath property or in the resources of the TaskbarAssistant.IconsAssembly assembly.

Namespace: DevExpress.Utils.Taskbar

Assembly: DevExpress.Utils.v24.2.dll

NuGet Packages: DevExpress.Utils, DevExpress.Wpf.Core

#Declaration

[DefaultValue(-1)]
[DXCategory("Appearance")]
[ImageList("Collection")]
public int IconIndex { get; set; }

#Property Value

Type Default Description
Int32 -1

The index of an icon that is contained in the assembly resources.

#Remarks

The IconIndex property allows you to assign an icon to a task from the image source specified by the JumpListItemTask.IconPath property. If this image source is not specified, the icon is retrieved from the TaskbarAssistant.IconsAssembly assembly’s resources.

The IconIndex property refers to an icon from the resources by its index. See the TaskbarAssistant.IconsAssembly, to learn more.

The default value is set to -1. In this case, if the path to a command or executable file is assigned to the JumpListItemTask.Path property, an icon of this file is used as the task icon.

See Also