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.1.dll

Declaration

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

Property Value

Type Description
Boolean

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

Remarks

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.

xmlns:dxmvvm="http://schemas.devexpress.com/winfx/2008/xaml/mvvm"
...
<ListBox VerticalAlignment="Top">
    <dxmvvm:Interaction.Behaviors>
        <dxmvvm:EnumItemsSourceBehavior EnumType="local:UserRole" AllowImages="False"/>
    </dxmvvm:Interaction.Behaviors>
</ListBox> 
See Also