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

TokenEditorBehavior.TokensChanging Event

Occurs when a token is about to be added to or removed from the edit field.

Namespace: DevExpress.Xpf.Editors

Assembly: DevExpress.Xpf.Core.v24.2.dll

NuGet Package: DevExpress.Wpf.Core

#Declaration

public event EventHandler<TokensChangingEventArgs> TokensChanging

#Event Data

The TokensChanging event's data class is TokensChangingEventArgs. The following properties provide information specific to this event:

Property Description
AddedTokens Gets the list of tokens that have been added. Inherited from TokensChangedEventArgs.
IsCancel Cancels the token modification.
RemovedTokens Gets the list of tokens that have been removed. Inherited from TokensChangedEventArgs.

#Remarks

Handle the TokensChanging event to prevent a user from adding or removing tokens.

The TokensChanging event is fired when the new token is added by entering data in the editor’s edit field.

See Also