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.Click Event

Fires when a task has been clicked.

Namespace: DevExpress.Utils.Taskbar

Assembly: DevExpress.Utils.v24.2.dll

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

#Declaration

[DXCategory("Events")]
public event EventHandler Click

#Event Data

The Click event's data class is EventArgs.

#Remarks

A click on a task in the Jump List does the following:

  • Launches a file or folder specified by the JumpListItemTask.Path property (if this property is not empty).
  • Fires the Click event.

    You can handle the Click event to perform custom actions. This event fires regardless of whether the JumpListItemTask.Path property is set.

Important

Note that the jump list tasks require the application to be currently running in order to handle their Click events. After the application was closed, only tasks with their JumpListItemTask.Path properties specified remain functional.

In the following example, the Click event is handled to close the current form on task clicking:

private void jumpListItemTask1_Click(object sender, EventArgs e) {
    this.BeginInvoke(new MethodInvoker(delegate {
        this.Close();
   }));
}
See Also