private void Thumb_DragCompleted(object sender, DragCompletedEventArgs e) { if (ValueChanged != null) { if ((sender.Equals(MinThumb))) { ValueChanged(this, new RangeChangedEventArgs(_oldValue, RangeMin, RangeSelectorProperty.MinimumValue)); } else { ValueChanged(this, new RangeChangedEventArgs(_oldValue, RangeMax, RangeSelectorProperty.MaximumValue)); } } VisualStateManager.GoToState(this, "Normal", true); }
private void ThumbDragCompleted(object sender, DragCompletedEventArgs e) { OnRangeChanged(); }
private void LowerThumb_DragCompleted(object sender, DragCompletedEventArgs e) { double lowerRectHeight = root.RowDefinitions.ElementAt(4).Height.Value; double deltaChange = lowerRectHeight * _normalisationFactor; this.LowerValue = this.Min + deltaChange; // update event args with new value and fire the event args.NewValue = this.LowerValue; OnLowerValueChanged(args); }
private void OnDragCompleted(object sender, DragCompletedEventArgs e) { UpdateSnapToTicks(); }
private void OnThumbDragCompleted(object sender, DragCompletedEventArgs e) { double num = Math.Round(base.Value); if (num != base.Value) { base.Value = num; } EventHandler dragCompleted = this.DragCompleted; if (dragCompleted != null) { dragCompleted(this, EventArgs.Empty); } }