Skip to main content

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.1.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