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

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

NuGet Package: DevExpress.Win.Navigation

#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