Ejemplo n.º 1
0
 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);
     }
 }
Ejemplo n.º 2
0
 private void GradientPicker_BrushChanged(object sender, ColorBox.BrushChangedEventArgs e)
 {
     handler.Properties.Brush.Colors = ColorStopCollection.FromMediaBrush(GradientPicker.Brush);
 }
Ejemplo n.º 3
0
 private void Gradient_editor_BrushChanged(object sender, ColorBox.BrushChangedEventArgs e)
 {
     EffectConfig.brush = new EffectsEngine.EffectBrush(this.gradient_editor.Brush);
 }
Ejemplo n.º 4
0
 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);
 }