windowsforms-devexpress-dot-utils-dot-taskbar-dot-jumplistitemtask-b2f2d586.md
Fires when a task has been clicked.
Namespace : DevExpress.Utils.Taskbar
Assembly : DevExpress.Utils.v25.2.dll
NuGet Packages : DevExpress.Utils, DevExpress.Wpf.Core
[DXCategory("Events")]
public event EventHandler Click
<DXCategory("Events")>
Public Event Click As EventHandler
The Click event's data class is EventArgs.
A click on a task in the Jump List does the following:
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();
}));
}
Private Sub JumpListItemTask1_Click(sender As Object, e As EventArgs) Handles JumpListItemTask1.Click
Me.BeginInvoke(New MethodInvoker(Sub() Me.Close()))
End Sub
See Also