C# Класс Refractored.XamForms.PullToRefresh.Droid.PullToRefreshLayoutRenderer

Наследование: SwipeRefreshLayout, IVisualElementRenderer, SwipeRefreshLayout.IOnRefreshListener
Показать файл Открыть проект

Private Properties

Свойство Тип Описание
CanScrollUp bool
HandlePropertyChanged void
UpdateColors void
UpdateContent void
UpdateIsRefreshing void
UpdateIsSwipeToRefreshEnabled void

Открытые методы

Метод Описание
CanChildScrollUp ( ) : bool

Determines whether this instance can child scroll up. We do this since the actual swipe refresh can't figure it out

GetDesiredSize ( int widthConstraint, int heightConstraint ) : SizeRequest

Gets the size of the desired.

Init ( ) : void

Used for registration with dependency service

OnRefresh ( ) : void

The refresh view has been refreshed

PullToRefreshLayoutRenderer ( ) : System

Initializes a new instance of the Refractored.XamForms.PullToRefresh.Droid.PullToRefreshLayoutRenderer class.

SetElement ( VisualElement element ) : void

Setup our SwipeRefreshLayout and register for property changed notifications.

UpdateLayout ( ) : void

Updates the layout.

Приватные методы

Метод Описание
CanScrollUp ( Android.Views.ViewGroup viewGroup ) : bool
HandlePropertyChanged ( object sender, PropertyChangedEventArgs e ) : void

Handles the property changed. Update the control and trigger refreshing

UpdateColors ( ) : void
UpdateContent ( ) : void

Managest adding and removing the android viewgroup to our actual swiperefreshlayout

UpdateIsRefreshing ( ) : void
UpdateIsSwipeToRefreshEnabled ( ) : void

Описание методов

CanChildScrollUp() публичный Метод

Determines whether this instance can child scroll up. We do this since the actual swipe refresh can't figure it out
public CanChildScrollUp ( ) : bool
Результат bool

GetDesiredSize() публичный Метод

Gets the size of the desired.
public GetDesiredSize ( int widthConstraint, int heightConstraint ) : SizeRequest
widthConstraint int Width constraint.
heightConstraint int Height constraint.
Результат SizeRequest

Init() публичный статический Метод

Used for registration with dependency service
public static Init ( ) : void
Результат void

OnRefresh() публичный Метод

The refresh view has been refreshed
public OnRefresh ( ) : void
Результат void

PullToRefreshLayoutRenderer() публичный Метод

Initializes a new instance of the Refractored.XamForms.PullToRefresh.Droid.PullToRefreshLayoutRenderer class.
public PullToRefreshLayoutRenderer ( ) : System
Результат System

SetElement() публичный Метод

Setup our SwipeRefreshLayout and register for property changed notifications.
public SetElement ( VisualElement element ) : void
element Xamarin.Forms.VisualElement Element.
Результат void

UpdateLayout() публичный Метод

Updates the layout.
public UpdateLayout ( ) : void
Результат void