Comments (12)
Hi I'm an AI powered bot that finds similar issues based off the issue title.
Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!
Open similar issues:
- PullToRefresh activity indicator hidden behind header in CollectionView (#20723), similarity score: 0.79
- ListView pull-to-refresh not working in Windows (WinUI) but work on Android/iOS (#18850), similarity score: 0.77
- [MAUI] RefreshView C6 or C7 Pull down in the view isn't activate the RefreshView on Surface. (#16974), similarity score: 0.76
Closed similar issues:
- [regression/8.0.0-preview.7.8842] - RefreshView does not hide spinner when IsRefreshing set to false. (#16910), similarity score: 0.78
- RefreshView on Android at .net 8 preview 7 don't stop refreshing (#17338), similarity score: 0.77
Note: You can give me feedback by thumbs upping or thumbs downing this comment.
from maui.
@muffadal53 actually it's the other way around, I was mistaken. The ListView
sets the IsRefreshing
for you. So what happens is that the ListView
sets IsRefreshing
to true
before it gets to this check: https://github.com/muffadal53/ListViewRefreshApp/blob/master/ViewModel/TestConfigViewModel.cs#L33
That check will evaluate to being false and then entire thing is being skipped and IsRefreshed
is never set to false
.
This is not a bug in .NET MAUI but rather something that is not correct in your code.
Thanks for the report!
from maui.
@samhouts: This issue is not resolved.So, can you please reopen this issue.Thanks.
from maui.
It is really surprising that without providing working solution or workaround MAUI issues are just getting closed. Please provide answer to this issue @jfversluis, @davidortinau, @samhouts.
from maui.
Verified this issue with Visual Studio 17.10 Preview 7 (8.0.40 & 8.0.3). Can repro it.
from maui.
@jfversluis: Can you please help in fixing this issue with workaround or urgent service pack release of .NET 8.0 as it is common usecase to use PullToRefresh functionality of ListView and it is urgent for our app release?
from maui.
same error here
from maui.
Is there any reason you're setting Mode=OneWay on the IsRefreshing property? I think that might be the issue here. The ListView will set that to false whenever it's done refreshing, but now it can't because you set the mode to OneWay? Have you tried that?
from maui.
Is there any reason you're setting Mode=OneWay on the IsRefreshing property? I think that might be the issue here. The ListView will set that to false whenever it's done refreshing, but now it can't because you set the mode to OneWay? Have you tried that?
@jfversluis: The reason I have set the Mode=OneWay is because I am managing the value of IsRefreshing from the ViewModel during Reload operation. And even if you remove the Mode=OneWay the IsRefreshing spinner remains stuck
And if you look at the documentation of MAUI it is contradicting to what you have mentioned in your comment and here is what it is says in the documentation "Once the ListView is refreshed, the IsRefreshing property should be set to false, or the EndRefresh method should be called on the ListView, to indicate that the refresh is complete."
So, please let me know how this issue can be Awaiting prompt reply.
from maui.
@jfversluis: Yes it is other way round. The "IsRefreshing" is set to true by the ListView and we need to set it to "false" after Refresh. And I have updated my code and below is the updated version. Now, the "IsRefreshed" is set to false but even with that change the "IsRefreshing" spinner doesn't get closed.
Below us the updated code in the ViewModel:
`private void RefreshListItems()
{
try
{
TestConfigList.Clear();
ReloadFromSource();
}
finally
{
ListRefreshing = false;
}
}`
You can check the repositry too:
https://github.com/muffadal53/ListViewRefreshApp/blob/master/ViewModel/TestConfigViewModel.cs#L33
So, without checking the code by making the change you are suggesting as not an issue you just closed the issue by giving the reference of the MAUI document. This doesn't seem to be right. And it is not only me who has got this issue. Along with me @ninachen03 and @eynerdevp also are able to reproduce the issue. So, please use my updated version of the ListView sample and run it on your side and let me know the behavior.
@davidortinau: Please look into this issue and let me know the solution as it is urgent on our side.
Awaiting feedback at the earliest. And this issue is not Closed till the solution is provided.
Regards
from maui.
I pulled down your code again and added OnPropertyChanged(nameof(ListRefreshing));
right after you set ListRefreshing = false;
. This makes it work as it should.
There is no issue with .NET MAUI, this works as intended, therefore it's closed. The issue is somewhere in the logic in your code unfortunately.
from maui.
Thanks @jfversluis for the clarification. I think it would be better to have a concrete example in MAUI documentation of ListView showing in section of https://learn.microsoft.com/en-us/dotnet/maui/user-interface/controls/listview?view=net-maui-8.0#pull-to-refresh Pull to refresh on how this property must be handled. The current example doesn't seem to explain this detail properly.
from maui.
Related Issues (20)
- ListView items disappearing while scrolling on iOS HOT 4
- UITests broken for net9 HOT 1
- MAUI App Scaling Issue on Windows HOT 1
- Cannot reference Microsoft.AspNetCore.Mvc.NewtonsoftJson version 8.0.6 in net8.0-ios HOT 7
- My mac doesnt show up HOT 4
- Grouped CollectionView fires IndexOutOfBoundsException from MauiRecyclerView after second collapse/expand HOT 2
- Cannot publish iOS from Windows after connecting to Mac HOT 4
- Border on iOS redraws with 1 frame lag, creating flashes of (1) square corners on redraws, and (2) old background color before new color update HOT 2
- [Android] SwipeItem IconImageSource should allow more configuration
- Merging ResourceDictionary from referenced assembly fails to compile [reason found] HOT 5
- Please have a look at this issue https://github.com/CommunityToolkit/Maui/issues/1931 and how that can be solved. Looks like this fix does some strange things when the Unloaded event is not set on the page and Loaded is.
- Material Maui HOT 1
- Enabling Essentials VersionTracking blocks main thread on Android HOT 3
- IOS: PDF Readers are not shown in open in menu HOT 7
- Scrollview with ScrollView VerticalOptions="Center" not growing to fit contents on iOS HOT 2
- View with Dynamic Margin Size get blinking because resizing in Android HOT 5
- Softkeyboard Return key of an Entry control shows Done when the property ReturnType is set to Next HOT 2
- The color of hamburger icon in FlyoutPage always be changed to the white in Maui. HOT 1
- BindingOperations Missing
- [iOS] NRE after calling ViewCell.ForceUpdateSize HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from maui.