Share via


Apply a 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 Brush category of the Properties panel. The properties you see in the Brush 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 or Background.

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 Brush in the Properties panel, click Fill or Stroke, and then click either Solid color brush JJ155128.3a66ec96-47bb-47fc-8876-6b9456feec3a(en-us,VS.110).png or Gradient brush JJ155128.91fb0c61-7b3b-4ae7-8a59-760e625e3bd7(en-us,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 JJ155128.415db740-5a54-48d2-8678-245ccfa7ee8b(en-us,VS.110).png and apply an existing brush resource to the selected object.

    Tip

    A Color eyedropper JJ155128.2ab2d2fb-3478-4b33-87fb-3cdeb9df4d52(en-us,VS.110).png appears in the lower-right corner of the color Editor when you modify a Solid color brush JJ155128.3a66ec96-47bb-47fc-8876-6b9456feec3a(en-us,VS.110).png or a gradient stop on a Gradient brush JJ155128.91fb0c61-7b3b-4ae7-8a59-760e625e3bd7(en-us,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 JJ155128.91fb0c61-7b3b-4ae7-8a59-760e625e3bd7(en-us,VS.110).png, you can select the Gradient eyedropper Gradient eyedropper icon and drag a line across a sample of a color anywhere inside the Blend for 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 Brush in the Properties panel, select the brush property that you want to remove, and then click the No Brush tab JJ155128.706bbd5c-c0e0-43a1-9604-297f019d0275(en-us,VS.110).png.

    Note

    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.

See Also

Tasks

Create a brush or color resource (Blend for Visual Studio)