private void RaiseInteractionRatioChanged(float interactionRatio) { if (this.InteractionRatioChanged != null) { this.InteractionRatioChanged.Invoke(this, PullToRefreshHelperTestApi.CreateRefreshInteractionRatioChangedEventArgsInstance((interactionRatio / (float)this.slider.Maximum))); } }
public void RaiseInteractionRatioChangedEvent(float interactionRatio) { if (this.InteractionRatioChanged != null) { this.InteractionRatioChanged.Invoke(this, PullToRefreshHelperTestApi.CreateRefreshInteractionRatioChangedEventArgsInstance(interactionRatio)); } }
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++; } }