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 Jump
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();
}));
}