Skip to main content

RepositoryItemTokenEdit.TokenDoubleClick Event

Occurs when an end-user double clicks a token within this TokenEdit.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v24.2.dll

Declaration

[DXCategory("Events")]
public event TokenEditTokenClickEventHandler TokenDoubleClick

Event Data

The TokenDoubleClick event's data class is DevExpress.XtraEditors.TokenEditTokenClickEventArgs.

Remarks

Handle the TokenDoubleClick event to perform specific actions when a token is double clicked. For instance, the code below illustrates how to display a panel assigned to the RepositoryItemTokenEdit.PopupPanel property, indicating that its default display on mouse hover is disabled.

tokenEdit1.Properties.PopupPanelOptions.ShowPopupPanel = false;
tokenEdit1.Properties.TokenDoubleClick += Properties_TokenDoubleClick;

void Properties_TokenDoubleClick(object sender, DevExpress.XtraEditors.TokenEditTokenClickEventArgs e) {
    Point showPoint = ((Control)sender).PointToScreen(new Point(e.Bounds.X + e.Bounds.Width / 2, e.Bounds.Y));
    tokenEdit1.Properties.PopupPanel.ShowBeakForm(showPoint, true, tokenEdit1);
}

For single mouse clicks, handle the RepositoryItemTokenEdit.TokenClick event instead.

See Also