Back to Devexpress

ComboBoxEdit.ShowCustomItems Property

wpf-devexpress-dot-xpf-dot-editors-dot-comboboxedit-5f909ed5.md

latest2.6 KB
Original Source

ComboBoxEdit.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 combobox editor clears its value (EditValue). The bound data field is set to a null reference.

Note

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

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ShowCustomItems 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#L17

xml
<dxpp:ParameterLineLayout>
    <dxe:ComboBoxEdit Grid.Column="1" MinWidth="70" ShowCustomItems="True"
        IncrementalFiltering="False" AutoComplete="True" ImmediatePopup="True"

See Also

ComboBoxEdit Class

ComboBoxEdit Members

DevExpress.Xpf.Editors Namespace