protected override void OnElementPropertyChanged(object sender, PropertyChangedEventArgs e) { base.OnElementPropertyChanged(sender, e); if (e.PropertyName == ListView.IsRefreshingProperty.PropertyName) { if (!Element.IsRefreshing && refreshDeferral != null) { refreshDeferral.Complete(); refreshDeferral.Dispose(); } } }
protected override void Dispose(bool disposing) { if (_isDisposed) { return; } if (Control != null && disposing) { Control.RefreshRequested -= OnRefresh; if (_refreshCompletionDeferral != null) { _refreshCompletionDeferral.Complete(); _refreshCompletionDeferral.Dispose(); _refreshCompletionDeferral = null; } } _isDisposed = true; base.Dispose(disposing); }
public void Dispose() { _deferral.Dispose(); }
void IDeferralResolver.Dispose(Deferral deferral) => deferral.Dispose();