windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitemtokenedit-8a8b1a21.md
Gets or sets the custom drop-down control for this TokenEdit.
Namespace : DevExpress.XtraEditors.Repository
Assembly : DevExpress.XtraEditors.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
[Browsable(false)]
[DefaultValue(null)]
[DXCategory("Appearance")]
public CustomTokenEditDropDownControlBase CustomDropDownControl { get; set; }
<DXCategory("Appearance")>
<Browsable(False)>
<DefaultValue(Nothing)>
Public Property CustomDropDownControl As CustomTokenEditDropDownControlBase
| Type | Default | Description |
|---|---|---|
| DevExpress.XtraEditors.Popup.CustomTokenEditDropDownControlBase | null |
A DevExpress.XtraEditors.Popup.CustomTokenEditDropDownControlBase class descendant that serves as the custom drop-down control for this TokenEdit.
|
By default, the TokenEdit features a simple combo box-like drop-down that lists all available tokens. You can replace this drop-down with your own control if it derives from the DevExpress.XtraEditors.Popup.CustomTokenEditDropDownControlBase class. See the TokenEdit with Custom Drop-Down Control topic for an example.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the CustomDropDownControl 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.
winforms-tokenedit-dropdown-with-treelist/CS/TokenEditTest/Form1.cs#L21
void InitTokenEdit() {
tokenEdit.Properties.CustomDropDownControl = new CustomTokenEditDropDownControl();
for(int i = 0; i < 20; i++) {
winforms-tokenedit-dropdown-with-treelist/VB/TokenEditTest/Form1.vb#L23
Private Sub InitTokenEdit()
tokenEdit.Properties.CustomDropDownControl = New CustomTokenEditDropDownControl()
For i As Integer = 0 To 19
See Also
TokenEdit with Custom Drop-Down Control