Bug 33406 - clearing a binded listview from within one of the item's textcell command's execute fails
Summary: clearing a binded listview from within one of the item's textcell command's e...
Status: RESOLVED NORESPONSE
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 1.5.0
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-08-26 17:09 UTC by Erik Renaud
Modified: 2016-04-13 18:48 UTC (History)
5 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED NORESPONSE

Description Erik Renaud 2015-08-26 17:09:25 UTC
Given this xaml:

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             x:Class="DayTickler.Views.Menu.AdminCodesPage">
    <StackLayout>
        <StackLayout IsVisible="{Binding IsLocked}">
            <Label Text="Admin Unlock Code"/>
            <Entry Text="{Binding AdminUnlockCode}" Keyboard="Numeric" Placeholder="Enter admin unlock code..."></Entry>
            <Button Command="{Binding Unlock}" Text="Unlock"/>
        </StackLayout>
        <StackLayout IsVisible="{Binding IsUnlocked}">
    <ListView ItemsSource="{Binding Items}">
        <ListView.ItemTemplate>
                <DataTemplate>
                    <TextCell Text="{Binding Name}" Detail="{Binding Description}" Command="{Binding Execute}" CommandParameter="{Binding ID}"></TextCell>
                </DataTemplate>
            </ListView.ItemTemplate>
    </ListView>
        </StackLayout>
    </StackLayout>
</ContentPage>

If I do a Items.Clear() in a Device.BeingExecuteOnMainThread in the Execute command, I get a invalid index error
Comment 1 Stephane Delcroix 2016-01-20 12:57:23 UTC
Hi Erik,

We tried to reproduce your issue on our most recent version of XF and we were unable to get the crash on iOS, Android or wp8, p81, uwp.

If the issue still happen for you, could you please share the minimal project that is sufficient to trigger the issue so we can look at it and fix it ?

Warm regards,

the XF team
Comment 2 Paul DiPietro [MSFT] 2016-04-13 18:48:41 UTC
Thank you for your bug report. As we have not received the information requested, we cannot properly triage your bug and are marking it resolved.

Warm regards,
Xamarin Forms Team