Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

[Spec] CollectionView Refresh Indicator #5142

Closed
pauldipietro opened this issue Feb 5, 2019 · 3 comments
Closed

[Spec] CollectionView Refresh Indicator #5142

pauldipietro opened this issue Feb 5, 2019 · 3 comments

Comments

@pauldipietro
Copy link
Contributor

Summary

Provide the ability for users to define their own template/ContentView for a custom refresh indicator in the CollectionView.

API

<CollectionView>
    <RefreshIndicatorTemplate>
        <ContentView>
            <Label Text="Refreshing..."/>
        </ContentView>
    </RefreshIndicatorTemplate>
</CollectionView>
var cv = new CollectionView();
cv.RefreshIndicatorTemplate = new ContentView {
    Content = new Label { Text = "Refreshing..." }
};

Properties

API Description
RefreshIndicatorTemplate ContentView that appears to indicate that the CollectionView is refreshing.

Considerations

The goal is, of course, for the behavior to best match the naming, which is why RefreshIndicatorTemplate is being used to start with. Setting it within the CollectionView (such as in the above sample XAML) is consistent with typical Xamarin.Forms concepts. Feedback is welcome as this is still a relatively open enhancement concept.

Difficulty: Medium

@AndreiMisiukevich
Copy link
Contributor

AndreiMisiukevich commented Feb 5, 2019

@pauldipietro hi

I can be wrong, but RefreshIndicatorTemplate name hints me, that i should set DataTemplate there.

Perhaps, RefreshIndicator would be enough.
Because we have such names as: ActivityIndicator (class name), Header and Footer properties in ListView. (instead of ActivityIndicatorView, HeaderTemplate and FooterTemplate)

@adrianknight89
Copy link
Contributor

Wasn't this decided to be RefreshView as discussed in the CollectionView spec?

@samhouts
Copy link
Member

Duplicate of #5882

@samhouts samhouts marked this as a duplicate of #5882 Jul 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants