Skip to content

RefreshView is not initialized properly on Windows platform #19715

Open

Description

Description

I encountered an error creating a MAUI Hybrid application where the RefreshView is incorrectly initialized.
But it looks like this is related also to standard MAUI app.

Steps to Reproduce

  1. Clone official sample .NET MAUI:
    https://github.com/dotnet/maui-samples/tree/main/8.0/UserInterface/Views/RefreshViewDemo

  2. Remove from MainPage.xaml ScrollView and FlexLayout tags which resides inside RefreshView

  3. Run app on Windows Machine
    RefreshView indicator animation is not moving and the screen is locked.

  4. Add inside RefreshView and it returns to normal behavior!
    If you add BlazorWebView inside RefreshView -> it is not possible to click anything on page

Remarks:

  1. In my app when I use RefreshView with BlazorWebView - the web content cannot be interactive because refresh indicator is present blocking inputs even where IsRefreshing/IsEnabled are set to false!

  2. Another error -> If you leave inside RefreshView empty ScrollView from example - application crashes with Unhandled exception "Adaptee's content property cannot be null."

  3. I tested it on .NET 7 and .NET8 with the same result. All scenarios work on Android.

Link to public reproduction project repository

No response

Version with bug

8.0.3

Is this a regression from previous behavior?

No, this is something new

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

Windows SDK 10.0.17763.0 and higher

Did you find any workaround?

Only workaround is to add entry inside refresh view. If I add BoxView, Label - does not help.

Relevant log output

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions