Skip to main content

TokenLookUpEditStyleSettings.TokenStyle Property

Gets or sets the appearance settings applied to tokens.

Namespace: DevExpress.Xpf.Grid.LookUp

Assembly: DevExpress.Xpf.Grid.v22.1.dll

NuGet Package: DevExpress.Wpf.Grid.Core


public Style TokenStyle { get; set; }

Property Value

Type Description

A Style object that is the style applied to tokens.


Use the TokenStyle property to specify a custom token style.

The following example demonstrates how to specify a custom token style for a lookup editor.

<Window ...
    xmlns:dxei="" >
    <Style x:Key="tokenStyle" TargetType="{x:Type dxei:TokenEditorPresenter}">
        <Setter Property="NewTokenText" Value="Add..."/>
        <Setter Property="Foreground" Value="Red"/>
        <Setter Property="FontWeight" Value="Bold"/>
    <dxg:LookUpEdit ItemsSource="{Binding Data}" DisplayMember="Info">
            <dxg:TokenLookUpEditStyleSettings TokenStyle="{StaticResource tokenStyle}"/>
See Also