EnumItemsSourceBehavior.AllowImages Property

Gets or sets whether the images are displayed within the items. This is a dependency property.

Namespace: DevExpress.Mvvm.UI

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


public bool AllowImages { get; set; }
Public Property AllowImages As Boolean

Property Value

Type Description

true, if images are displayed; otherwise, false. The default is true.


Use the AllowImages property to control whether the images are displayed with the corresponding items. Refer to the EnumItemsSourceBehavior document for information about assigning images to enum items.

The code sample below demonstrates how to disable images within the items.

<ListBox VerticalAlignment="Top">
        <dxmvvm:EnumItemsSourceBehavior EnumType="local:UserRole" AllowImages="False"/>
See Also