Back to Devexpress

ListBoxEdit.ShowCustomItems Property

wpf-devexpress-dot-xpf-dot-editors-dot-listboxedit-9d1672fb.md

latest2.0 KB
Original Source

ListBoxEdit.ShowCustomItems Property

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

Namespace : DevExpress.Xpf.Editors

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

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public bool? ShowCustomItems { get; set; }
vb
Public Property ShowCustomItems As Boolean?

Property Value

TypeDescription
Nullable<Boolean>

true, to display custom items; otherwise, false.

|

Remarks

The ShowCustomItems property specifies whether to display the (None) item. If a user has selected (None), the ListBoxEdit clears its value (EditValue). The bound data field is set to a null reference.

xaml
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

The ListBoxEdit displays the (None) item if the bound data field supports null values and the AllowCollectionView property is set to false.

See Also

ListBoxEdit Class

ListBoxEdit Members

DevExpress.Xpf.Editors Namespace