Skip to main content

AutoSuggestEdit.ItemsPanel Property

Gets or sets the template that defines the panel that controls the layout of items displayed within the editor’s dropdown. This is a dependency property.

Namespace: DevExpress.Xpf.Editors

Assembly: DevExpress.Xpf.Core.v24.1.dll

NuGet Package: DevExpress.Wpf.Core

Declaration

public ItemsPanelTemplate ItemsPanel { get; set; }

Property Value

Type Description
ItemsPanelTemplate

A ItemsPanelTemplate object that represents the panel to use for the layout of the items.

Remarks

By default, the layout of items is defined by the DevExpress.Xpf.Core.DXVirtualizingStackPanel control with the enabled virtualization.

See the ItemsControl.ItemsPanel topic for more information.

Example

The code sample below demonstrates how to use the standard VirtualizingStackPanel control for the layout of items.

<dxe:AutoSuggestEdit QuerySubmitted="AutoSuggestEdit_QuerySubmitted">
    <dxe:AutoSuggestEdit.ItemsPanel>
        <ItemsPanelTemplate>
            <VirtualizingStackPanel/>
        </ItemsPanelTemplate>
    </dxe:AutoSuggestEdit.ItemsPanel>
</dxe:AutoSuggestEdit>
See Also