Compartir a través de


Apply a solid color or gradient brush to an object's fill or stroke

Applying a brush is how you change the basic appearance of an object, such as the color or pattern that appears on part of the object. Brush properties are listed in the Brushes category of the Properties panel. The properties you see in the Brushes category vary depending on the object you have selected. Although this topic discusses only Fill and Stroke properties, you can apply a brush to all Brush properties such as Foreground, Background, BorderBrush, and OpacityMask.

This topic shows you how to apply a solid color or gradient brush to an object. For information on how to apply a tile brush, see Apply a tile brush to an object's fill or stroke.

To apply a brush to an object's fill or stroke

  1. On the artboard, select the object to which you want to apply a brush. The Properties panel will display the properties for the object.

  2. Under Brushes in the Properties panel, click Fill or Stroke, and then click either Solid color brush JJ170357.3a66ec96-47bb-47fc-8876-6b9456feec3a(es-es,VS.110).png or Gradient brush JJ170357.91fb0c61-7b3b-4ae7-8a59-760e625e3bd7(es-es,VS.110).png.

  3. At this point, you can define a brush by picking a color or creating a gradient. Additionally, you can click the Brush resources tab JJ170357.415db740-5a54-48d2-8678-245ccfa7ee8b(es-es,VS.110).png and apply an existing brush resource to the selected object.

    SugerenciaSugerencia

    A Color eyedropper JJ170357.2ab2d2fb-3478-4b33-87fb-3cdeb9df4d52(es-es,VS.110).png appears in the lower-right corner of the color Editor when you modify a Solid color brush JJ170357.3a66ec96-47bb-47fc-8876-6b9456feec3a(es-es,VS.110).png or a gradient stop on a Gradient brush JJ170357.91fb0c61-7b3b-4ae7-8a59-760e625e3bd7(es-es,VS.110).png. With this eyedropper selected, you can grab a color sample from anywhere on your desktop and apply it to the selected brush. When you modify a Gradient brush JJ170357.91fb0c61-7b3b-4ae7-8a59-760e625e3bd7(es-es,VS.110).png, you can select the Gradient eyedropper Icono de cuentagotas de degradado and drag a line across a sample of a color anywhere inside the Blend para Visual Studio 2012 application window to apply it to the brush. You can press the ESC key at any time to cancel out of the eyedroppers.

To remove a brush that is applied to an object

  1. On the artboard, select the object from which you want to remove the brush. The Properties panel will display the properties for the object.

  2. Under Brushes in the Properties panel, select the brush property that you want to remove, and then click the No Brush tab JJ170357.706bbd5c-c0e0-43a1-9604-297f019d0275(es-es,VS.110).png.

    [!NOTA]

    In the case of the Stroke property, you are not actually removing the stroke. For example, you may have a stroke applied that has no brush, yet the thickness of the stroke is still present. You can modify the stroke thickness by changing the StrokeThickness value in the Appearance category.

Vea también

Tareas

Create a brush resource or color resource