TokenComboBoxStyleSettings.EnableTokenWrapping Property
Gets or sets a value that specifies whether token wrapping is enabled. This is a dependency property.
Namespace: DevExpress.Xpf.Editors
Assembly: DevExpress.Xpf.Core.v24.2.dll
NuGet Package: DevExpress.Wpf.Core
#Declaration
#Property Value
Type | Description |
---|---|
Nullable<Boolean> | true, to enable token wrapping; otherwise, false. |
#Remarks
If the EnableTokenWrapping property is set to true and the width of a ComboBox does not allow all selected tokens to fit on one line, newly selected tokens will appear on a new line.
Note
Enabling token wrapping also hides the dropdown button .
If you need to display the dropdown, set the Button
Tip
You can use the Look
To provide easier access to selected items, do one of the following.
- Set the TextEditBase.VerticalScrollBarVisibility (via ComboBoxEdit.VerticalScrollBarVisibility) property to Visible or Auto. This way, a user will be able to navigate the tokens.
- Set the ComboBoxEdit.Height property to Auto. In this case, the height of a combo box will be adjusted according to the number of tokens.