private void MaxThumb_DragStarted(object sender, DragStartedEventArgs e) { ThumbDragStarted?.Invoke(this, e); _absolutePosition = Canvas.GetLeft(_maxThumb); Canvas.SetZIndex(_minThumb, 0); Canvas.SetZIndex(_maxThumb, 10); _oldValue = RangeMax; VisualStateManager.GoToState(this, "MaxPressed", true); }
private void MaxThumb_DragStarted(object sender, DragStartedEventArgs e) { ThumbDragStarted?.Invoke(this, e); Thumb_DragStarted(_maxThumb); }
protected override void OnThumbDragStarted(DragStartedEventArgs e) { ThumbDragStarted?.Invoke(this, e); base.OnThumbDragStarted(e); }
/// <summary> /// Called before the <see cref="ThumbDragStarted"/> event occurs. /// </summary> /// <param name="e">Event data for the event.</param> protected virtual void OnThumbDragStarted(DragStartedEventArgs e) { ThumbDragStarted?.Invoke(this, e); }