Esempio n. 1
0
 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();
         }
     }
 }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
 public void Dispose()
 {
     _deferral.Dispose();
 }
Esempio n. 4
0
 void IDeferralResolver.Dispose(Deferral deferral) => deferral.Dispose();