Back to Devexpress

TokenEditorBehavior.TokensChanging Event

wpf-devexpress-dot-xpf-dot-editors-dot-tokeneditorbehavior-e4e7153f.md

latest1.9 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public event EventHandler<TokensChangingEventArgs> TokensChanging
vb
Public Event TokensChanging As EventHandler(Of TokensChangingEventArgs)

Event Data

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

PropertyDescription
AddedTokensGets the list of tokens that have been added. Inherited from TokensChangedEventArgs.
IsCancelCancels the token modification.
RemovedTokensGets 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

TokenEditorBehavior Class

TokenEditorBehavior Members

DevExpress.Xpf.Editors Namespace