unoplatform / uno

Open-source platform for building cross-platform native Mobile, Web, Desktop and Embedded apps quickly. Create rich, C#/XAML, single-codebase apps from any IDE. Hot Reload included! 90m+ NuGet Downloads!!
https://platform.uno
Apache License 2.0
9.08k stars 736 forks source link

CollectionViewSource.Source Property Changes won't Update a ListView #4465

Open robloo opened 4 years ago

robloo commented 4 years ago

Current behavior

Changing a source using code like:

this.EventsListCollectionViewSource.Source = state.Data.GroupedCalendarEvents;

With corresponding XAML:

<Page>
    <Page.Resources>
        <CollectionViewSource
            x:Name="EventsListCollectionViewSource"
            IsSourceGrouped="True" />
    </Page.Resources>
    <Grid>
        <ListView ItemsSource="{Binding Source={StaticResource EventsListCollectionViewSource}}">
        </ListView
    </Grid>
</Page>

Does not seem to update the ListView content.

Expected behavior

ListView should be updated.

How to reproduce it (as minimally and precisely as possible)

Investigating.

Workaround

Environment

Nuget Package:

Nuget Package Version(s):

Affected platform(s):

IDE:

Relevant plugins:

Anything else we need to know?

iosub commented 3 years ago

there is a bug on Android on at Windows.UI.Xaml.Controls.ListViewBase.ClearContainerForDragDrop (Windows.UI.Xaml.UIElement itemContainer) [0x00000] in C:\a\1\s\src\Uno.UI\UI\Xaml\Controls\ListViewBase\ListViewBase.DragDrop.cs:95

https://github.com/unoplatform/uno/issues/4725#issue-763013281 build 3.4