Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DXCollectionView.SelectedItemAppearance Property

Gets or sets the appearance settings that are applied to current DXCollectionView selected items. This is a bindable property.

Namespace: DevExpress.Maui.CollectionView

Assembly: DevExpress.Maui.CollectionView.dll

NuGet Package: DevExpress.Maui.CollectionView

#Declaration

C#
public CollectionViewSelectedItemAppearance SelectedItemAppearance { get; set; }

#Property Value

Type Description
CollectionViewSelectedItemAppearance

An appearance object.

#Remarks

Refer to the following topic for available appearance properties: CollectionViewSelectedItemAppearance members.

The following example specifies selected item appearance:

<dx:DXCollectionView ...
                     SelectionMode="Single">
    <dx:DXCollectionView.SelectedItemAppearance>
        <dx:CollectionViewSelectedItemAppearance TextColor="Coral" 
                                                 BackgroundColor="Beige"/>
    </dx:DXCollectionView.SelectedItemAppearance>
</dx:DXCollectionView>

Note: if you have the DXCollectionView.ItemTemplate property specified, use the DXCollectionView.SelectedItemTemplate property to define selected item appearance.

See Also