private void GradientPicker_BrushChanged(object sender, ColorBox.BrushChangedEventArgs e) { handler.Properties.Brush.Colors = ColorStopCollection.FromMediaBrush(GradientPicker.Brush); }
private void GradientEditor_BrushChanged(object sender, ColorBox.BrushChangedEventArgs e) { // Set the particle's color stops from the media brush. We cannot pass the media brush directly as it causes issues with UI threading handler.Properties._ParticleColorStops = ColorStopCollection.FromMediaBrush(e.Brush); }