private void Thumb_MouseDown(object sender, MouseButtonEventArgs e) { isCaptured = true; Animations.AnimateScale(1, 1.2, Thumb, 0.1, null); if (ValueLabelEnabled) { Animations.AnimateMargin(new Thickness(ValueLabel.Margin.Left, -4, 0, -2), new Thickness(ValueLabel.Margin.Left, -4, 0, 4), ValueLabel, 0.2, 0, null); Animations.AnimateFade(0, 1, ValueLabel, 0.2, 0, null); } Ripple.Fill = new SolidColorBrush(AccentColor); Animations.AnimateFade(0, 0.25, Ripple, 0, 0, null); Animations.AnimateScale(0, 1, Ripple, 0.2, null); Thumb.CaptureMouse(); }
private void Thumb_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) { isDragging = Thumb.CaptureMouse(); ignoreJump = isDragging; thumbProg = sliderProg; }