TokenLookUpEditStyleSettings.TokenStyle Property

Gets or sets the appearance settings applied to tokens.

Namespace: DevExpress.Xpf.Grid.LookUp

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

Declaration

public Style TokenStyle { get; set; }
Public Property TokenStyle As Style

Property Value

Type Description
Style

A Style object that is the style applied to tokens.

Remarks

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="http://schemas.devexpress.com/winfx/2008/xaml/editors/internal" >
<Window.Resources>
    <Style x:Key="tokenStyle" TargetType="{x:Type dxei:TokenEditorPresenter}">
        <Setter Property="NewTokenText" Value="Add..."/>
        <Setter Property="Foreground" Value="Red"/>
        <Setter Property="FontWeight" Value="Bold"/>
    </Style>
</Window.Resources>
<Window.DataContext>
    <local:ViewModel/>
</Window.DataContext>
...
    <dxg:LookUpEdit ItemsSource="{Binding Data}" DisplayMember="Info">
        <dxg:LookUpEdit.StyleSettings>
            <dxg:TokenLookUpEditStyleSettings TokenStyle="{StaticResource tokenStyle}"/>
        </dxg:LookUpEdit.StyleSettings>
    </dxg:LookUpEdit>
...

Implements

DevExpress.Xpf.Editors.ITokenStyleSettings.TokenStyle
See Also