public static FireSelectedColorChangedEvent ( |
||
issuer | ||
routedEvent | System.Windows.RoutedEvent | |
oldColor | Color | |
newColor | Color | |
Résultat | void |
private void UpdateSelectedColor() { var selectedColor = SelectedColor; var newColor = ColorUtils.ConvertHsvToRgb(Hue, Saturation, Value); SelectedColor = newColor; ColorUtils.FireSelectedColorChangedEvent(this, SelectedColorChangedEvent, selectedColor, newColor); }
private void UpdateSelectedColor(Color newColor) { var selectedColor = SelectedColor; SelectedColor = newColor; if (!FixedSliderColor) { UpdateColorSlidersBackground(); } ColorUtils.FireSelectedColorChangedEvent(this, SelectedColorChangedEvent, selectedColor, newColor); }