maui icon indicating copy to clipboard operation
maui copied to clipboard

CollectionView RemainingItemsThresholdReachedCommand Invalid

Open HenJigg opened this issue 2 years ago • 11 comments

Description

Using the RemainingItemsThresholdReachedCommand on the CollectionView control cannot be triggered on the Windows platform, but works normally on the Android platform. image

LoadMoreCommand cannot be triggere MauiApp3.zip d

Steps to Reproduce

MauiApp3.zip

Version with bug

6.0.400 (current)

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

Windows 10.0.19401.0

Did you find any workaround?

No response

Relevant log output

No response

HenJigg avatar Jun 27 '22 06:06 HenJigg

I have faced the same issue

jballa1 avatar Jun 27 '22 13:06 jballa1

Hi @HenJigg. We have added the "s/needs-repro" label to this issue, which indicates that we require steps and sample code to reproduce the issue before we can take further action. Please try to create a minimal sample project/solution or code samples which reproduce the issue, ideally as a GitHub repo that we can clone. See more details about creating repros here: https://github.com/dotnet/maui/blob/main/.github/repro.md

This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

ghost avatar Jun 27 '22 19:06 ghost

Hi, @HenJigg - thanks for opening this issue. Please reattach the sample project as a GitHub repository so that we can investigate further!

rachelkang avatar Jun 27 '22 19:06 rachelkang

MauiApp3 (1).zip

HenJigg avatar Jun 28 '22 00:06 HenJigg

verified repro on windows, works fine on andrroid.

kristinx0211 avatar Jun 28 '22 08:06 kristinx0211

I just hit this issue as well

RonPeters avatar Aug 21 '22 10:08 RonPeters

We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.

ghost avatar Aug 30 '22 14:08 ghost

Any progress on this?

apavelm avatar Oct 05 '22 11:10 apavelm

Also just hit this. I have been playing with MAUI for about 2 hours and so far ran into at least 5 bugs for UWP. What's going on here?

Anyone have a workaround for this?

RuddyOne avatar Oct 06 '22 08:10 RuddyOne

ran into at least 5 bugs for UWP

I thought MAUI's Windows backend was WinUI, not UWP?

knocte avatar Oct 15 '22 06:10 knocte

I have the same problem. Any Updates to this ? Any workarounds ?

lucianparvu avatar Nov 12 '22 07:11 lucianparvu

I have this problem as well. I thought that perhaps the RemainingItemsThreshold might need to be more than the number of items loaded initially but they don't make any difference. But apparently you need to wrap the collectionview in a refreshview? <RefreshView Grid.Row="0" Grid.Column="0" IsRefreshing="{Binding IsRefreshing}"> <CollectionView
VerticalOptions="Start"
ItemsSource="{Binding BatchItems}" SelectionMode="Single" SelectionChanged="CollectionView_SelectionChanged" VerticalScrollBarVisibility="Always" RemainingItemsThresholdReachedCommand="{Binding GetNextItemsCommand}" RemainingItemsThreshold="50" > etc

acrigney avatar Nov 28 '22 03:11 acrigney

Same problem here. I worked around by placing a button underneath the CollectionView for now:

<Button Grid.Row="2"
        Text="Load more..."
        IsVisible="{OnPlatform False, WinUI=True}"
        Command="{Binding LoadMoreDocumentsCommand}" />

jaldinger avatar Dec 05 '22 19:12 jaldinger

Also hoping/waiting for this to get fixed

mdbill avatar Jan 19 '23 20:01 mdbill

This is somewhat funny, because WinUI is actually the only supported UI developed by Microsoft and it is also the platform with the most quirks when using MAUI. There really needs to be more/better support for desktop (WinUI).

FroggieFrog avatar Feb 28 '23 08:02 FroggieFrog