public void DoPanEvent(AppPanViewEventArgs args) { if (this.OnPanEvent != null) { this.OnPanEvent(this, args); } }
private void CalcNewValue(AppPanViewEventArgs args) { var deltaY = _startY - args.Y; var step = this.GetValueStep(); var deltaValue = 0; if (step != 0) { deltaValue = (int)(deltaY / step); } var newValue = _startValue + deltaValue; if (newValue < this.MinValue) { newValue = this.MinValue; } else if (newValue > this.MaxValue) { newValue = this.MaxValue; } _value = newValue; this.SetPointer(); }