Skip to main content
A newer version of this page is available. .

ListBoxEdit.ShowCustomItems Property

Gets or sets whether to display custom items. This is a dependency property.

Namespace: DevExpress.Xpf.Editors

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

Declaration

public bool? ShowCustomItems { get; set; }

Property Value

Type Description
Nullable<Boolean>

true, to display custom items; otherwise, false.

Remarks

The ShowCustomItems property specifies whether the (None) item is displayed. If an end user has selected this item, the ListBoxEdit editor clears its BaseEdit.EditValue and BaseEdit.DisplayText properties. The bound data field is set to a null reference.

xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
...
<dxe:ListBoxEdit ShowCustomItems="True">
    <dxe:ListBoxEditItem>Item1</dxe:ListBoxEditItem>
    <dxe:ListBoxEditItem>Item2</dxe:ListBoxEditItem>
    <dxe:ListBoxEditItem>Item3</dxe:ListBoxEditItem>
</dxe:ListBoxEdit>

Note

To support the (None) item, an underlying data field should support null values.

See Also