Back to Devexpress

DXCollectionView.SelectedItemAppearance Property

maui-devexpress-dot-maui-dot-collectionview-dot-dxcollectionview-06022c2b.md

latest2.0 KB
Original Source

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

csharp
public CollectionViewSelectedItemAppearance SelectedItemAppearance { get; set; }

Property Value

TypeDescription
CollectionViewSelectedItemAppearance

An appearance object.

|

Remarks

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

The following example specifies selected item appearance:

xaml
<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

DXCollectionView Class

DXCollectionView Members

DevExpress.Maui.CollectionView Namespace