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 Class

Provides access to token settings and allows you to control the token editing process.

Namespace: DevExpress.Xpf.Editors

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

NuGet Package: DevExpress.Wpf.Core

#Declaration

public class TokenEditorBehavior :
    Behavior<LookUpEditBase>,
    ITokenEditorBehavior

#Remarks

The TokenEditorBehavior provides multiple events (e.g., TokenEditorBehavior.TokensChanged, TokenEditorBehavior.TokensChanging, etc.) that allow you to control token editing.

The example below illustrates how to apply the behavior to a ComboBoxEdit.

<Window ...
    xmlns:mvvm="http://schemas.devexpress.com/winfx/2008/xaml/mvvm"/>
...
    <dxe:ComboBoxEdit>                
        <dxe:ComboBoxEdit.StyleSettings>
            <dxe:TokenComboBoxStyleSettings/>
        </dxe:ComboBoxEdit.StyleSettings>
        <mvvm:Interaction.Behaviors>
            <dxe:TokenEditorBehavior x:Name="tokenEditorBehavior"/>
        </mvvm:Interaction.Behaviors>
    </dxe:ComboBoxEdit>

#Inheritance

Object
DispatcherObject
DependencyObject
Freezable
Animatable
DevExpress.Mvvm.UI.Interactivity.AttachableObjectBase
DevExpress.Mvvm.UI.Interactivity.Behavior
DevExpress.Mvvm.UI.Interactivity.Behavior<LookUpEditBase>
TokenEditorBehavior
See Also