private void RaiseInteractionRatioChanged(float interactionRatio)
 {
     if (this.InteractionRatioChanged != null)
     {
         this.InteractionRatioChanged.Invoke(this, PullToRefreshHelperTestApi.CreateRefreshInteractionRatioChangedEventArgsInstance((interactionRatio / (float)this.slider.Maximum)));
     }
 }
示例#2
0
 public void RaiseInteractionRatioChangedEvent(float interactionRatio)
 {
     if (this.InteractionRatioChanged != null)
     {
         this.InteractionRatioChanged.Invoke(this, PullToRefreshHelperTestApi.CreateRefreshInteractionRatioChangedEventArgsInstance(interactionRatio));
     }
 }
示例#3
0
        private void RaiseInteractionRatioChanged(double interactionRatio)
        {
            compositionProperties.InsertScalar(interactionRatioName, (float)(interactionRatio));

            if (interactionRatioChangedCount == 0 || interactionRatio == 0.0)
            {
                if (InteractionRatioChanged != null)
                {
                    var e = PullToRefreshHelperTestApi.CreateRefreshInteractionRatioChangedEventArgsInstance(interactionRatio);
                    InteractionRatioChanged.Invoke(this, e);
                }
                interactionRatioChangedCount++;
            }
            else if (interactionRatioChangedCount >= 5)
            {
                interactionRatioChangedCount = 0;
            }
            else
            {
                interactionRatioChangedCount++;
            }
        }