How can I add context actions to an iOS ListView only?

The code below crashed on Android. Any suggestions?

<ViewCell>
    <ViewCell.ContextActions>
        <OnPlatform x:TypeArguments="MenuItem">
            <On Platform="iOS">
                <MenuItem Text="Delete" CommandParameter="{Binding .}" Clicked="MenuItem_Clicked" IsDestructive="True"/>
            </On>
        </OnPlatform>
    </ViewCell.ContextActions>
</ViewCell>

Thanks.

Answers

  • seanydaseanyda GBMember ✭✭✭✭✭

    What was the exception that was thrown?

  • SomewhereElseSomewhereElse USMember ✭✭

    @seanyda said:
    What was the exception that was thrown?

    The application is in break mode
    Your app has entered a break state, but there is no code to show because all threads were executing external code (typically system or framework code).
    System.NullReferenceException: Object reference not set to an instance of an object.

Sign In or Register to comment.