private void Gradient_editor_BrushChanged(object sender, ColorBox.BrushChangedEventArgs e) { if (IsLoaded && settingsset && this.DataContext is GradientLayerHandler && sender is ColorBox.ColorBox) { (this.DataContext as GradientLayerHandler).Properties._GradientConfig.brush = new EffectsEngine.EffectBrush((sender as ColorBox.ColorBox).Brush); } }
private void GradientPicker_BrushChanged(object sender, ColorBox.BrushChangedEventArgs e) { handler.Properties.Brush.Colors = ColorStopCollection.FromMediaBrush(GradientPicker.Brush); }
private void Gradient_editor_BrushChanged(object sender, ColorBox.BrushChangedEventArgs e) { EffectConfig.brush = new EffectsEngine.EffectBrush(this.gradient_editor.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); }