C# 클래스 Refractored.XamForms.PullToRefresh.Droid.PullToRefreshLayoutRenderer

상속: SwipeRefreshLayout, IVisualElementRenderer, SwipeRefreshLayout.IOnRefreshListener
파일 보기 프로젝트 열기: jamesmontemagno/Xamarin.Forms-PullToRefreshLayout

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