private void StopsControlValueChanged(object sender, MultiSliderRoutedEventArgs e) { currentBrush.GradientStops[e.Position].Offset = e.SliderValues[e.Position]; OnPropertyChanged(CurrentBrushPropertyName); CreateXamlOutput(currentBrush); }
private void StopsControlSliderSelected(object sender, MultiSliderRoutedEventArgs e) { Stops.CurrentEditStop = e.Position; }
/// <summary> /// Raises the SliderSelected event. /// </summary> /// <param name="s">The slider that was selected.</param> private void RaiseSliderSelectedEvent(SupportiveSlider s) { var mve = new MultiSliderRoutedEventArgs(SliderSelectedEvent, SliderValues, s.Position); RaiseEvent(mve); }