Back to Devexpress

CheckedTokenComboBoxStyleSettings.NewTokenPosition Property

wpf-devexpress-dot-xpf-dot-editors-dot-checkedtokencomboboxstylesettings.md

latest3.5 KB
Original Source

CheckedTokenComboBoxStyleSettings.NewTokenPosition Property

Gets or sets a value that specifies the position of a new token inside a ComboBoxEdit. This is a dependency property.

Namespace : DevExpress.Xpf.Editors

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

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public NewTokenPosition? NewTokenPosition { get; set; }
vb
Public Property NewTokenPosition As NewTokenPosition?

Property Value

TypeDescription
Nullable<NewTokenPosition>

A NewTokenPosition enumeration value that specifies a new token position.

|

Available values:

NameDescription
None

End-user can add new tokens by selecting them from the drop-down only.

| | Near |

New tokens are added at the start of the editor.

| | Far |

New tokens are added at the end of the editor.

|

Remarks

By default, the NewTokenPosition is set to Near , so new tokens are displayed at the start of the editor.

The following code snippets (auto-collected from DevExpress Examples) contain references to the NewTokenPosition property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

reporting-wpf-custom-editor-for-report-parameter/CS/CustomParameterEditorsWPF/MainWindow.xaml#L25

xml
<dxe:ComboBoxEdit.StyleSettings>
    <dxe:CheckedTokenComboBoxStyleSettings AllowEditTokens="False" EnableTokenWrapping="True" ShowTokenButtons="True" NewTokenPosition="Far" />
</dxe:ComboBoxEdit.StyleSettings>

mvvm-application-with-wpf-bars/CS/Bars_in_MVVM_Application/MainWindow.xaml#L66

xml
<dxe:ComboBoxEditSettings.StyleSettings>
    <dxe:CheckedTokenComboBoxStyleSettings AllowEditTokens="False" FilterOutSelectedTokens="False" NewTokenPosition="None"/>
</dxe:ComboBoxEditSettings.StyleSettings>

See Also

CheckedTokenComboBoxStyleSettings Class

CheckedTokenComboBoxStyleSettings Members

DevExpress.Xpf.Editors Namespace