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

[Spec] RefreshView #5882

Closed
Closed
@samhouts

Description

@samhouts

RefreshView

Part of CollectionView

Represents a container control that provides refresh functionality for its content.

API

public class RefreshView : ContentView
{
	public static readonly BindableProperty CommandProperty;
	public ICommand Command { get; set; }

	public static readonly BindableProperty CommandParameterProperty;
	public object CommandParameter { get; set; }

	public static readonly BindableProperty IsEnabledProperty;
	public bool IsEnabled { get; set; }

	public bool IsRefreshing { get; set; }

	public Color BackgroundColor {get; set;}
	public Color RefreshColor {get; set;}
}

UWP Platform Specific

UWP is the only platform that has this concept implemented natively so for now we will just implement a platform specific for UWP users that won't to be able to change this

public enum RefreshPullDirection  PullDirection 

Properties

API Description
Command Gets or sets the command to execute when this item is invoked.
CommandParameter Optional parameter passed to the refresh command.
IsEnabled Gets or sets a value indicating whether the user can interact with RefreshView.
IsRefreshing This indicates the current state of the refresh control. Developers will need to set this back to false to indicate that a refresh has completed. If this is set to true it will trigger the command and the refresh visualization on the platform. This will automatically transition to true when the user has performed the required actions to trigger the platforms Refresh Control
BackgroundColor iOS - Background Color of the UIView that contains the progress circle. Android- Background Color of the progress circle
RefreshColor Color of the circle itself

RefreshPullDirection

public enum RefreshPullDirection
{
	LeftToRight,
	TopToBottom,
	RightToLeft,	
	BottomToTop
}

Enum Values

API Description Notes
LeftToRight The user must pull from left to right to refresh. May be pushed to a future phase.
TopToBottom The user must pull from top to bottom to refresh.
RightToLeft The user must pull from right to left to refresh. May be pushed to a future phase.
BottomToTop The user must pull from bottom to top to refresh. May be pushed to a future phase.

Examples

<RefreshView BackgroundColor="Green" RefreshColor="Pink">

UWP

image

Android

image

iOS

image

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions