Ejemplo n.º 1
0
 public SegmentedRadialBrushFactory(ColorStopCollection colors)
 {
     this.colors = colors;
     CreateBaseTextureBrush();
 }
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 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);
 }