Exemplo n.º 1
0
 private void GradientPicker_BrushChanged(object sender, ColorBox.BrushChangedEventArgs e)
 {
     handler.Properties.Brush.Colors = ColorStopCollection.FromMediaBrush(GradientPicker.Brush);
 }
Exemplo n.º 2
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);
 }