Back to Devexpress

TokenEditorBehavior Class

wpf-devexpress-dot-xpf-dot-editors-0c2f300f.md

latest2.4 KB
Original Source

TokenEditorBehavior Class

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

Namespace : DevExpress.Xpf.Editors

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

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public class TokenEditorBehavior :
    Behavior<LookUpEditBase>,
    ITokenEditorBehavior
vb
Public Class TokenEditorBehavior
    Inherits Behavior(Of LookUpEditBase)
    Implements 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.

xaml
<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

TokenEditorBehavior Members

DevExpress.Xpf.Editors Namespace