Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.
This repository was archived by the owner on May 1, 2024. It is now read-only.

ListView ContextActions MenuItem IsDestructive has no red background color #10612

@Chris26506

Description

@Chris26506

Im using latest Xamarin.Forms 4.6.0.726:

All my listviews contextactions with IsDestructive=true have no red background color on iOS 12.2 and down. This is only working as expected for me on iOS 13.4 devices.

Use a simple LIstView with a DataTemplate, ViewCell and ContextActions with a MenuItem and IsDestructive=True:

<ListView x:Name="MyListView"> <ListView.ItemTemplate> <DataTemplate> <ViewCell> <ViewCell.ContextActions> <MenuItem Text="Delete" IsDestructive="True"/> </ViewCell.ContextActions> <StackLayout> <Label Text="{Binding Text}"/> </StackLayout> </ViewCell> </DataTemplate> </ListView.ItemTemplate> </ListView>

Expected Behavior

Delete on red background

Actual Behavior

Delete on (white) background (transparent) and not readable.

lv

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions